Capacity Planning
Design a system that crawls the web: start from a set of seed URLs, fetch each page, extract its links, and keep going — billions of pages deep — so a downstream system (a search index, an archive, a training corpus) has the content.
In scope: fetching pages, extracting and enqueueing links, deduplicating URLs and content, and recrawling for freshness. Out of scope: the search index or archive itself, ranking, and rendering client-side JavaScript (a variant).
Scale and usage:
Assume a target of about 10,000 pages a second, each page around 50 KB. That's 10,000 × 50 KB ≈ 500 MB/second of content flowing into the system — the number the fetcher fleet and content storage have to sustain. Assume roughly 10 billion URLs need a "have I seen this" check. A Bloom filter at about 10 bits per URL costs 10,000,000,000 × 10 bits ≈ 12.5 GB — small enough to fit in memory on a handful of machines, versus roughly 80 GB for exact 64-bit hashes of the same count — and far more for full URL strings.
What a strong answer sounds like
State the decision, connect it to a requirement, and name the tradeoff. Ask the interviewer for any product facts you need (users, usage, scale, targets) — they will answer. Keep the design focused on the workload.
The AI interviewer asks about this part of Design a Web Crawler. The interviewer guides you through topics one by one.