Design: a search service
The core idea
A search service turns a few words into an ordered list of documents.
For a team's documentation, that means finding useful matches while respecting edits, deletions and access changes.
In this lesson
- Decide what the search box promises
- Two paths through the service
- Retain enough information to repair the index
- Follow one query
- An empty result has a boundary
- Replace an index without replacing the truth
- Add capacity where requests spend it
- Give later pages a stable position
- Run the update and deletion sequence
- Check usefulness as well as correctness
Continue reading
Pro unlocks video lessons, visual walkthroughs, full notes, diagrams, case studies, and implementations across the System Design archive.