Practice
Learn
← Quit
0 / 0 correct
System Design
Hard
1 of 40
Typeahead: how are trending query counts collected without slowing the request path?
A
Increment a database counter synchronously on every keystroke
B
Log queries asynchronously, aggregate in batch or stream jobs, then rebuild/update the trie periodically
C
Recompute top-k on every request
D
Ask users to rate suggestions