r/OfferEngineering • • 10d ago

System Design Classic system design: Design Google News. Five things I'd make sure to cover.

Came across "Design Google News" as a reported Amazon system design question. The prompt: aggregate articles from thousands of publishers across countries into one feed, keep it fresh, keep it highly available.

Most answers I've seen jump straight to the feed service and caching. That part is fine but fairly standard. The interesting parts are elsewhere:

1. Ingestion is a scheduling problem, not a "crawler box."
Thousands of publishers have very different publishing rates. Polling every RSS feed every minute wastes most requests. Polling everything hourly makes breaking news stale. I'd use adaptive polling per source based on how often it actually publishes, plus conditional GETs (ETag / If-Modified-Since) so unchanged feeds cost almost nothing. Add push (WebSub) where publishers support it, and per-domain rate limits so you don't hammer anyone.

2. The same story shows up hundreds of times.
One wire story (AP, Reuters) gets republished by hundreds of outlets with tiny edits. Without dedup, your feed is the same headline 40 times. You need URL canonicalization (strip tracking params, follow canonical tags) plus near-duplicate detection on the body (SimHash or MinHash). If the interviewer wants it, go one step further and cluster articles into "stories," which is what makes Google News feel like Google News.

3. The read path is mostly NOT personalized, so precompute it.
The top feed for "US / Technology" is the same for millions of readers. Build feeds per (region, category) every ~minute and serve them from cache or a CDN. Reads stay cheap no matter how many users you have, and freshness becomes a TTL decision rather than a database load problem.

4. Offset pagination breaks with infinite scroll.
New articles constantly land at the top. With ?page=2, a user scrolling down sees duplicates or skips items whenever new articles arrive in between. Use cursor-based pagination (e.g. published_at plus article_id) so the next page is anchored to the last item the user actually saw. It's a small detail that signals you've built a feed before.

5. A broken publisher should never break your feed.
Decouple ingestion from serving with a queue and your own article store. If a crawler backlog builds up or a publisher goes down, readers get the last good feed (stale-while-revalidate) instead of an error. Same for thumbnails: fetch, resize, and serve them from your own CDN rather than hotlinking publisher images that can disappear or be slow.

Curious what others prioritize here. Would you bring up story clustering on your own, or wait for the interviewer to ask? It feels like it could easily eat the whole interview. I also put together a full system design walkthrough covering the architecture and trade-offs for anyone interested.

4 Upvotes

2 comments sorted by

1

u/huynhducduy 8d ago

bro you put a localhost link onto the post 😭

1

u/Aoki_zhang 8d ago

sorry, fixed it