Skip to content
Hard Design: Search Autocomplete (Google)

How do you handle race conditions when a user types quickly and multiple autocomplete requests are in-flight?

— Tests your understanding of this concept.

Answer Options

A Queue all requests and process in order
B Cancel previous in-flight request when new keystroke is detected; only process response matching current input
C Show all responses as they arrive
D Lock UI during request processing

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 22+ more Design: Search Autocomplete (Google) questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the Design: Search Autocomplete (Google) topic (System Design Cases).

More Design: Search Autocomplete (Google) Questions