Grokking the Modern Frontend System Design Interview
0% completed
Design an Autocomplete
A test page in the browser lab sent one suggestion request on every key press. Typing "chicken soup", with a short pause after "chicken", produced 12 requests. The test server was set up to answer the query "chick" slowly, so that reply arrived last, and the list under the box showed suggestions for "chick" while the box itself said "chicken soup".
The same page with a 250 ms wait after the last key press sent 2 requests. A check that drops replies to older requests kept the list correct even when the slow reply arrived last.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%