Design Google Search

0%

Editorial Solution

Overview

System requirements

Functional

Capacity estimation

Web Pages

API design

Search

Database design

Inverted Index (Two Layers)

High-level design

Write Path

Request flows

Search Query Flow

Detailed component design

Inverted Index Deep Dive

Trade offs/Tech choices

Document-Partitioned vs Term-Partitioned Index

Failure scenarios/bottlenecks

Index Shard Failure

Future improvements

Semantic and Vector Search

Table of Contents

Overview

System requirements

Functional

Capacity estimation

Web Pages

API design

Search

Database design

Inverted Index (Two Layers)

High-level design

Write Path

Request flows

Search Query Flow

Detailed component design

Inverted Index Deep Dive

Trade offs/Tech choices

Document-Partitioned vs Term-Partitioned Index

Failure scenarios/bottlenecks

Index Shard Failure

Future improvements

Semantic and Vector Search

Overview

Design a search engine that returns 10 relevant results from 100 billion web pages in under 200ms. The core challenge is a multi-stage ranking pipeline: cheap boolean retrieval narrows billions to thousands, BM25 scoring picks candidates, then a neural model re-ranks the final set.

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock
Try this problem yourself

Reading a solution is not the same as producing one under interview pressure. Design it on the whiteboard and get scored feedback.

Asked in these interview guides

Company guides that list this problem among their sample questions.


Markdown supported

0%

Editorial Solution

Overview

System requirements

Functional

Capacity estimation

Web Pages

API design

Search

Database design

Inverted Index (Two Layers)

High-level design

Write Path

Request flows

Search Query Flow

Detailed component design

Inverted Index Deep Dive

Trade offs/Tech choices

Document-Partitioned vs Term-Partitioned Index

Failure scenarios/bottlenecks

Index Shard Failure

Future improvements

Semantic and Vector Search

Table of Contents

Overview

System requirements

Functional

Capacity estimation

Web Pages

API design

Search

Database design

Inverted Index (Two Layers)

High-level design

Write Path

Request flows

Search Query Flow

Detailed component design

Inverted Index Deep Dive

Trade offs/Tech choices

Document-Partitioned vs Term-Partitioned Index

Failure scenarios/bottlenecks

Index Shard Failure

Future improvements

Semantic and Vector Search