System Design
20. System Design Case StudiesAnimated
Search Engine (Google)
Crawl, index and rank the web.
The idea
Crawlers fetch pages, an indexer builds an inverted index, and ranking orders results.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- client
- gateway / proxy
- service
- cache
- data store
- queue / stream
Crawlers fetch pages; an indexer builds an inverted index: word to documents.
- step:
- 1/4
- at:
- Crawler
1/11
The green dot is a request moving through the system.
Step by step
- 1Crawl pages
- 2Build the inverted index
- 3Parse and rank the query
- 4Return results
Where it is used
Large-scale search.
Watch out for
Index freshness and spam.