Design Real-Time Search Autocomplete with Top-10 Popularity-Ranked Prefix Suggestions

Read the full interview experience this question came from →

Quick Overview

Design a search autocomplete service that returns the top 10 popularity-ranked suggestions for an exact prefix, with near real-time freshness for trending queries at a scale of a billion users. Covers trie versus key-value serving, merging batch rebuilds with streaming updates, skewed prefix sharding, hot-shard rebalancing, and replica synchronization.

Design Real-Time Search Autocomplete with Top-10 Popularity-Ranked Prefix Suggestions

Company: Pinterest

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Onsite

Overview: Design a search autocomplete service that returns the top 10 popularity-ranked suggestions for an exact prefix, with near real-time freshness for trending queries at a scale of a billion users. Covers trie versus key-value serving, merging batch rebuilds with streaming updates, skewed prefix sharding, hot-shard rebalancing, and replica synchronization.

Read the full Pinterest Software Engineer interview experience this question came from

Pinterest logo
Pinterest
Sep 2, 2026
hardSoftware EngineerOnsiteSystem Design
4
0
Loading...