Case study: design a web crawler
Interview question: design the crawler that feeds a search engine. Start from a few seed pages, follow every link, and fetch a billion pages a month, without knocking over anyone's website. Where do you start?
In this lesson you'll learn to
- Turn the crawler question into requirements and numbers, including bandwidth, storage and fetches in flight.
- Design a URL frontier that is polite to every host, honours robots.txt and caches DNS.
- Avoid repeat work with URL normalisation, a Bloom filter of seen URLs and content hashes, and escape crawler traps.
- Schedule recrawls by how often pages change, use conditional requests, and survive crashed fetchers.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.