How real companies do itLesson 101 min
How does Google search billions of pages in under a second?
Google does not read the web while you wait. Its index works like the index at the back of a book: for each word, a list of the pages it appears on. Searching three words means pulling three ready-made lists and finding the pages on all of them, without opening any page. Crawlers keep visiting pages and following links to keep the lists fresh.
Remember
When a question will be asked millions of times, do the work once, in advance.
