Design: autocomplete

The core idea

Autocomplete returns a short list of useful completions while someone types.

We will design it for a shop: typing cam should offer products such as a camera or camera bag, and choosing a suggestion should open that product.

In this lesson

  • Start with the catalog
  • Two paths through the system
  • What the API returns
  • Finding six suggestions
  • The records behind a lookup
  • Responses can overtake each other
  • Keep typing responsive
  • Publish updates without mixing builds
  • Make selection work without a mouse

Continue reading

Pro unlocks video lessons, visual walkthroughs, full notes, diagrams, case studies, and implementations across the System Design archive.