PrepCity

Design typeahead

Open the lab

By the last page, this is the design you will have built. Drag it, or Show all, to see every part.

Lesson · 13 pages · about 12 min

Design typeahead

Suggestions under a search box, a million letters a second: prepare the top five per prefix, cache it, answer at the edge, rebuild every hour.

Words you’ll learn

  • Server
  • Millisecond
  • Request
  • Busiest hour
  • Capacity
  • Cache
  • Load balancer
  • API
  • PostgreSQL
  • Row

Page by page