Start Here

Tier 1 · Building Blocks

Scale Reads

Scale Writes

Database Selection

Traffic Control

Consistency & Coordination

Estimation

Tier 2 · Core Systems

Tier 3 · Location & Real-Time

Tier 4 · Infrastructure & Data

Tier 5 · Finance & Commerce

Tier 6 · Advanced & Collaborative

Phase 1 — Clarify & Scope

Interviewer: Design a news aggregator — think Google News or Apple News. What do you want to clarify?

Candidate: Key questions:

  1. Are we crawling the open web for news articles, or relying on publisher RSS/Atom feeds?
  2. What's the primary feature: a personalized news feed, trending stories, or topic-based browsing?
  3. How do we handle duplicate stories (10 sources reporting the same event)?
  4. What's the freshness requirement — how quickly should breaking news appear?
  5. Scale: users, publishers, articles per day?

Interviewer: Both web crawling and RSS/Atom feeds. All three features: personalized feed, trending, and topic browsing. Deduplicate coverage of the same story (cluster related articles). Breaking news: < 5 minutes from publication to appearing in feeds. 100 million users, 50,000 news sources, 10 million articles per day.

Candidate: Let me size this:

Article ingestion rate=10M articles/day86,400≈116 articles/sec\text{Article ingestion rate} = \frac{10\text{M articles/day}}{86{,}400} \approx 116 \text{ articles/sec}

Storage per article≈5 KB (text only) → 50 GB/day → 18 TB/year\text{Storage per article} \approx 5\text{ KB (text only) → 50 GB/day → 18 TB/year}

Feed reads=100M users×5 feed opens/day/86,400≈5,787 reads/sec\text{Feed reads} = 100\text{M users} \times 5 \text{ feed opens/day} / 86{,}400 \approx 5{,}787 \text{ reads/sec}

Interviewer: What are the core requirements?

Candidate:

  • Ingest articles from 50K publishers via RSS and web crawl
  • Deduplicate: cluster articles covering the same story into a "story cluster"
  • Classify articles: topic (politics, sports, tech), entity extraction (people, companies)
  • Personalized feed: rank stories by relevance to user's interests and reading history
  • Trending: global and per-topic trending stories
  • Breaking…

In the full tutorial

  • Phase 2 — High-Level Architecture
  • Phase 3 — Deep Dive & Evolution
  • Phase 4 — Robustness & Operations

Glossary history

Click dotted jargon to save explanations here.