KatInterview

Design a Real-Time News Aggregation Platform

System DesignModel answer
HardModel answerSystem Designingestion pipelinefeed rankingdeduplication

Last updated

Design a scalable news aggregation system covering ingestion, deduplication, clustering, personalized feed serving, and operational concerns at global scale.

Design a Real-Time News Aggregation Platform

You've been asked to design the backend for a news aggregation product that collects articles from tens of thousands of publishers worldwide, groups related articles into stories, and serves personalized feeds to hundreds of millions of readers.

What to cover

Ingestion layer — spend most of your time here:

  • Publisher onboarding, verification, and authentication
  • Multiple ingestion modes: push (webhooks, WebSub), scheduled polling (RSS, news sitemaps), and crawling
  • Scheduling strategy: adaptive poll intervals, conditional GETs, politeness and rate limiting, robots.txt compliance
  • Fetcher architecture: statefulness, parallelism, backfill vs. real-time queues
  • Schema normalization and content enrichment: language detection, entity extraction, category tagging
  • Deduplication at multiple levels (exact URL, near-duplicate, story clustering)
  • Idempotency and retry strategies across a distributed pipeline
  • Spam and abuse filtering
  • Copyright compliance and takedown handling

Storage and serving:

  • Article store and search index design
  • Feed generation: top stories, topic pages, personalized ranking
  • Freshness, caching strategy, and cache invalidation
  • Multi-region deployment and partitioning

Throughout your answer:

  • Define concrete APIs and data models
  • State consistency guarantees and where you relax them
  • Specify SLAs with actual numbers
  • Provide capacity estimates (storage, QPS, bandwidth)
  • Call out monitoring, alerting, and operational failure modes

What a strong answer looks like

A strong answer separates the write path (ingestion) from the read path (serving), explains where each consistency guarantee applies, handles the messy realities of external publishers (dirty data, outages, legal obligations), and makes deliberate trade-offs rather than defaulting to the most powerful tool for every problem.

Hints

Hint 1

Start by separating ingestion QPS (modest, ~100/s peak) from serving QPS (tens of thousands per second) — they have very different consistency and latency requirements, so keep them decoupled with a message queue in between.

Hint 2

Deduplication has three distinct levels with different tools: exact-match on canonical URL hash, near-duplicate detection via SimHash + banded LSH for syndicated wire stories, and semantic story clustering via ANN on embeddings — describe all three and when each fires.

Hint 3

Idempotency across HTTP and distributed workers can't be true exactly-once — commit to at-least-once delivery with idempotent effects instead: deterministic IDs, conditional upserts, and transactional Kafka consume-transform-produce patterns.