Design a Web Crawler
Prompt: "Design a crawler that downloads billions of web pages for a search engine."
A throughput-and-politeness problem: fetch as many pages as possible without hammering any one website, without re-fetching duplicates, and keep the crawl fresh. Interviewers look for the URL frontier, politeness, deduplication and fault tolerance.
In this lesson
- Learning objectives
- 1. Requirements
- 2. Estimates
- 3. Core entities
- 4. High-level design
- 5. Deep dives
- 6. Operations and cost
- 7. What each level adds
- Self-check
Questions covered
- Design a web crawler for 1B pages a week.
- How do you make the crawler resumable after failures?
This lesson is part of System Design Interview: Concepts, Patterns & Real Designs. Unlock the full course to read it, take the quiz and track your progress.