Challenges

Per-keystroke latency

Search box: typeahead

DifficultyStages: 0 / 4
  1. Prefix index
  2. Answers from memory
  3. Edge cache
  4. Trending every minute
  5. Final test

Show 10 suggestions on every keystroke. Index the lookups, answer repeats from memory, cache near the users and keep trending lists fresh within a minute.

Final testA query goes viral at 1:40: far lookups double and near lookups rise 20 percent for 20 s. Your final board runs once more with a new traffic seed.

The system, stage by stageTap, drag or use arrow keys to step through the stages

Stage 4 of 4 · 5 parts given · 46,500 requests/s

Users 1API server 1Postgres 1

Progress on this page stays on this device.

Product names belong to their owners. Cogore is not affiliated with them.