System Design · Middle · Question 4 of 75
What matters when designing autocomplete?
- ✓Correct answer: Debounce, cancelling stale requests, caching, keyboard support
- 2Sending a request on every keystroke with no delay
- 3Loading the entire suggestion dictionary into the browser on start
Explanation
Plus a minimum query length, handling response races, highlighting matches, a "nothing found" state, and the ARIA combobox pattern. For a small fixed dictionary, filtering on the client is fine (sometimes with a trie); for large ones, use server-side search.