Mock Interviewer
Ask Coach
Tap a question to start, or type your own below.
Distributed Search System Design
Visual Problem 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.
Clarify this problem here, or open Pathway Coach if you want a prep plan first.
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
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.
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.
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
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.
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