---
title: "Design: autocomplete"
description: "Design autocomplete for a shop: two paths through the system, the API, finding six suggestions, responses that arrive out of order, and safe index updates."
canonical_url: "https://fanout.sh/system/archive/autocomplete-system-design"
md_url: "https://fanout.sh/system/archive/autocomplete-system-design.md"
last_updated: "2026-11-11"
access: "pro-preview"
---

# Design: autocomplete

Design autocomplete for a shop: two paths through the system, the API, finding six suggestions, responses that arrive out of order, and safe index updates.

- Access: Fanout Pro (public preview)

## 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.

---
This representation contains public Fanout content only. Protected Pro lessons, account data, billing, checkout, and pricing are not included.

Browse the public content map: https://fanout.sh/sitemap.md
