Continue where you left off ×
Google Search, the case study
Everything · Open board
The whole nine-board set, once you already know the story each piece is telling.
Boards
Before you start. You already know the feeling of typing a couple of words into a search box and getting a good answer back before you’ve finished sitting down. This lesson takes that one second apart and shows you the two separate machines working underneath it, one running all the time in the background and one that only switches on the moment you hit enter.
The idea in 30 seconds
A search engine this size never searches live: it reads, sorts and scores the whole web ahead of time, so your query only has to look something up.
Flipping “what’s on this page” into “which pages hold this word” turns a search into a look-up and a merge, instead of a read of everything.
Splitting that lookup table into thousands of pieces and asking them all at once means your wait is set by whichever piece is slowest, not by the average.
Asking the same question of two copies at once, and keeping whichever answers first, turns a rare slow piece back into a rare event instead of a near-certainty.
The page that wins isn’t the one that repeats your words the most, it’s the one that other trustworthy pages vote for, combined with hundreds of smaller checks so no single trick can win by itself.
Keeping that lookup table fresh without ever fully closing it needed storage and processing tools that didn’t exist yet, which is why so much of today’s large-scale software still traces back to this one problem.
Read the story
Lesson 92 of 115 in System Design
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year .
See plans Already a member? Sign in
Or start free : a free account opens lessons 2 and 3 of every track.
In this lesson 1996: a dorm room, and a library that scored books by how often they repeated a word The one trick: do all the reading before anyone asks a question A reader who never finishes their list Turning the library inside out Asking a thousand copies of the library at once, and waiting for the slowest one The vote that beat the word count A library that never closes for renovation Building the shelves because the shelves didn’t exist yet More than ten doors The boards, condensed The numbers, worked The videos The crawler: fetching is the easy ten percent · also The inverted index: flip the data and a scan becomes a lookup , Scatter-gather: one query, a thousand leaves, and the slowest one wins , Ranking: hundreds of signals, fused into one number , Freshness: from a rebuild that took weeks to an index that changes in minutes , The papers underneath: a filesystem, a compute model, and a sorted map , Beyond ten blue links: the page that answers before you click , Google Search, the whole system on one canvas
Review System Design
Connects to
Splitting the ledger (sharding) System Design Hashing DSA Trees (BST, balancing, heaps, tries) DSA The Ledger Everyone Reads (event-driven & the log) System Design The Right Book for the Job (databases, deeply) System Design The Slate, Properly (caching to real depth) System Design Four Systems in One Night (worked designs) System Design Discord, the case study System Design Instagram, the case study System Design YouTube, the case study System Design Cloudflare, the case study System Design Dropbox, the case study System Design OpenRouter, the case study System Design Netflix, the case study System Design Uber, the case study System Design Twitter (X), the case study System Design Mark as read Saved in this browser, and to your account when you sign in.