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.

Search Engine System Design

Visual Problem Diagram

Search Engine System Design architecture diagram

Scenario

You type a query and expect the best pages back in under 200 ms, from a web of about 10 billion pages. The painful failure is the first page missing this morning's story, because that page was fetched but is not yet in the index the search reads.

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?

Someone types a query and gets a ranked list of web pages. They read a short preview of why each page matched. They can type the start of a query and see a suggested ending. A page that showed up on the web this morning can appear in those results.

You need to explain how the next page to visit is chosen. You need to explain how long the system waits before returning to the same site. You need to explain how a query uses the index instead of reading every page. You need to explain how a useful page is placed ahead of a weak one. You need to explain how a page fetched this morning gets into the index the search reads. Image search can stay thin.

Constraints

Functional

Visit pages on the web and remember which words appear on them. Answer a query with a ranked list and a short preview. Suggesting the rest of a query is optional.

Non-functional

Most searches come back in under 200 ms, so the results feel instant. The index holds about 10 billion pages. A crawl keeps running, so a new page does not wait for a full rebuild. When load spikes, a simpler ranking is shown instead of failing the search.

Scale

About 10 billion pages sit in an index on the order of a petabyte. The hot action is search. The peak is about 100,000 searches a second, and that read rate dominates.

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