KatInterview

Design a Real-Time News Story Aggregator

System DesignModel answer
MediumModel answerSystem Designsystem-designdata-ingestionclustering

Last updated

Architect a high-throughput news feed system that ingests raw articles, groups duplicate reports into single event clusters, and serves personalized timelines at scale.

Design a large-scale news aggregation system capable of pulling content from thousands of external publishers, web crawlers, and syndicated feeds to display a consolidated story feed to millions of users.

Requirements

  1. Ingestion Pipeline: Collect raw articles, extract content metadata, and filter exact or near-identical republications (e.g., syndicated wire stories).
  2. Story Clustering: Detect articles describing the same real-world event and merge them into a single, cohesive story cluster. A user viewing the feed should see one master entry per event; expanding it reveals the individual publisher reports.
  3. Feed Retrieval & Personalization: Construct timelines based on topic interest, source diversity, story freshness, and click behavior.
  4. Data Models & APIs: Detail the core entities, storage tiers, and RESTful endpoints for feed fetch, cluster breakdown, and telemetry.
  5. Operational Reliability & Scalability: Address system bottlenecks, caching strategies, backpressure management, and cluster ID stability.

Scale Assumptions

  • Ingestion: ~50,000 distinct source feeds generating 2 million raw articles daily (~25 writes/sec average, 300 writes/sec peak).
  • Read Traffic: 100 million daily active users (DAU), average 10 feed reads per day (~11,500 QPS average, 50,000 QPS peak).
  • Latency SLA: Feed rendering under 200 ms (p99); ingestion-to-cluster availability within 3 minutes.