Design Search Autocomplete

Last updated: June 17, 2026

Quick Overview

Design a typeahead suggestion system for a search engine. Cover trie-based data structures, ranking by popularity and personalization, real-time updates, and serving suggestions with sub-50ms latency.

Google
System Design
Software Engineer
Google
June 17, 2026
Software Engineer
Onsite
System Design
Medium

138

0

193 solved


Design a typeahead suggestion system for a search engine. Cover trie-based data structures, ranking by popularity and personalization, real-time updates, and serving suggestions with sub-50ms latency.

How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements
  • Functional Requirements:
    • Provide typeahead suggestions for user queries in real time.
    • Support multi-language queries and synonyms.
    • Rank suggestions based on popularity, personalizati...
Capacity Estimation

To estimate capacity, we can start with the following assumptions:

  • User Base: Assume Google Search has approximately 3 billion queries per day.
  • Typeahead Usage: Let's say 30% of these quer...

Submit Your Answer
Markdown supported

Related Questions