Design Search Autocomplete

Quick Overview

This question evaluates system design skills for building a large-scale, low-latency autocomplete service, including distributed architecture, indexing and ranking strategies, caching, ingestion pipelines, sharding, and operational trade-offs.

Design Search Autocomplete

Company: Moloco

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Onsite

Design a large-scale autocomplete service for a search engine. As a user types a query prefix, the system should return the top 5 suggested full queries in under 100 ms. Suggestions should be ranked by popularity, recent trends, and basic quality filters. The service must handle very high read traffic, frequent query updates, hot prefixes, and continuous ingestion of new search logs. Discuss the API, data model, indexing strategy, ranking, cache design, online and offline update pipelines, sharding, and how you would keep results fresh and reliable.

Overview: This question evaluates system design skills for building a large-scale, low-latency autocomplete service, including distributed architecture, indexing and ranking strategies, caching, ingestion pipelines, sharding, and operational trade-offs.

|Home/System Design/Moloco
Moloco logo
Moloco
Apr 12, 2026
hardSoftware EngineerOnsiteSystem Design
9
0

Design a large-scale autocomplete service for a search engine. As a user types a query prefix, the system should return the top 5 suggested full queries in under 100 ms. Suggestions should be ranked by popularity, recent trends, and basic quality filters. The service must handle very high read traffic, frequent query updates, hot prefixes, and continuous ingestion of new search logs. Discuss the API, data model, indexing strategy, ranking, cache design, online and offline update pipelines, sharding, and how you would keep results fresh and reliable.

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...