Capacity Planning
Design a news aggregator: crawl thousands of news sources continuously, then present a fresh, ranked feed of what's happening.
In scope: ingesting articles from many sources on an ongoing basis, recognizing when many articles cover the same event and grouping them, and ranking and presenting a feed of those grouped stories. Out of scope: the reader UI, comments, paywall handling, and deep personalization or recommendation machine learning.
Scale and usage:
Assume roughly 50,000 sources, each publishing about 20 articles a day — illustrative anchors, not measured facts. That's 50,000 × 20 = 1 million articles ingested per day. Finding duplicates naively means comparing each article against every other one: for a single day's articles, that's on the order of 1,000,000 × 1,000,000 = 1 trillion comparisons — no fleet of machines does that. LSH instead compares each article only against its own bucket-mates, say around 10 candidates on average, giving roughly 1,000,000 × 10 = 10 million comparisons a day — about five orders of magnitude fewer, and near-linear in article count instead of quadratic. On the read side, assume roughly 10 million daily readers each checking the feed about 10 times a day: 10M × 10 = 100 million reads a day, or on the order of 1,200 reads per second on average. Because the feed is shared — every reader asking for the same slice gets the same ranked list — a small set of cached copies serves a large fraction of reads. How large depends on hit rate and update frequency, but this read number matters far less than the ingest side.
Key idea. The expensive resource here is the clustering compute, not the read rate. All-pairs comparison is quadratic in article count; fingerprints plus LSH bring it down to near-linear, which is what makes clustering affordable at crawl scale.
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 News Aggregator. The interviewer guides you through topics one by one.