Mock Interviewer

Ask Coach

Ask Coach
Clarify requirements before you design — kept separate from your stage notes.

Tap a question to start, or type your own below.

Distributed Search System Design

Visual Problem Diagram

Distributed Search System Design architecture diagram

Scenario

You add a new product and immediately search for its name, expecting it to be findable within minutes. The painful failure is when the product stays missing until the next night's full rebuild, because the index is one giant copy on one machine and cannot take a small update.

Stuck on where to start? Ask Coach

Clarify this problem here, or open Pathway Coach if you want a prep plan first.

Free Coach trial
How should I start prep?

A shopper types words and gets a ranked list of products. They can narrow the list with filters. They see how many products match each filter. They see a short snippet of the match. A new product can be added. An existing product can be changed or removed. That change shows up in search without a full rebuild.

You need to explain how the index is split into pieces and how each piece is copied. You need to explain how a new product becomes findable in minutes. You need to explain how one search asks every piece and merges one ranked list. You need to explain how filter counts are computed on those pieces. Per-country word lists can stay thin.

Constraints

Functional

The system indexes documents. A shopper can search the words in them. They can filter and see counts for those filters. Results are ranked. A hit can show a short snippet. A document can be updated or deleted.

Non-functional

Most searches finish in under 200 milliseconds. A new or edited document becomes findable within minutes. Search stays up about 99.9% of the time.

Scale

Billions of documents. About 10,000 searches a second, and that query rate is the heavy read. The index is terabytes. It is split into hundreds of pieces.

Stages ahead

1Requirement Analysis
2API Design
3High-Level Design
4HLD Extensions
5Trade-offs

Not ready to design yet?

Try the free Coach trial — ask how to prep, what to practice first, or how InterviewCrafted works. Sign in when you want to start this problem.

Try Coach free

Log in to start practicing

Preview the problem below. Sign in to start your timed session, save progress, and use the AI coach.

Want full access now? View Pro pricing