Design a Top-N News Article System
Publish and rank news articles for a continuously updated top-N surface.
Problem statement
For this exercise, assume you are designing a top-n news article system. Publish and rank news articles for a continuously updated top-N surface. Define a coherent first production version that satisfies the listed requirements and scale while making failures and degraded behavior visible.
What to build
- Ingest article publication, update, and removal events.
- Aggregate engagement signals into a versioned ranking score.
- Serve a fresh top-N list with category filters and stable pagination.
At scale
- For this exercise, assume 10 million articles, 500,000 engagement events per second, and 100,000 reads per second.
- Refresh the visible ranking every 10 seconds and answer within 100 ms p99.
- Removed or policy-blocked articles must disappear within one minute.