Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Personalized News Aggregation Platform

Design scheduled multi-publisher news ingestion with a black-box topic classifier, cross-publisher story clustering, searchable news metadata, fast personalized feeds for users who follow hundreds of topics, a cached default mix, universally visible breaking news, and fast removal of withdrawn fake news.

Problem statement

For this exercise, assume a news aggregation platform periodically pulls article metadata from the APIs of many independent publishers and serves a fresh personalized feed.

Every publisher article has a unique URL and remains an independently attributable record, but several publishers may cover the same underlying story.

The platform must place high-confidence same-story articles into a versioned story cluster, preserve every member and its publisher attribution, and show at most one deterministic representative from that cluster in one coherent feed cursor; uncertain matches stay separate and later merge or split corrections must not corrupt pagination.

A normalized article contains a stable publisher identity, publisher article ID, canonical URL, title, publication time, and one or more topics. An existing black-box classifier assigns those topics; the platform calls it but does not build or train it.

The platform stores metadata and a short excerpt but does not host the full article body. A publisher retry or repeated crawl must not create a second logical publisher article.

A user can search accepted news metadata and excerpts by keyword, optionally narrow results by topic, publisher, or publication time, and page through results ordered by relevance and recency. Search returns one representative result per story cluster with publisher attribution and a stable cursor.

A user can also follow or unfollow topics and named publishers, and one user may follow hundreds of topics. If the user has preferences, the feed contains matching recent stories; if the user has none, the platform serves a precomputed default story mix cached for the user's market.

Authorized editors can mark one article as breaking news with an expiry, and every user feed must show its story cluster once even when it does not match preferences.

Within each feed class, order representative articles by publication time descending with stable pagination; breaking stories appear before ordinary stories. Authorized reviewers can withdraw an article, or a whole story cluster, that has been confirmed as fake news.

Withdrawn content must disappear from every feed and search result, including cached ones, and must not come back through caches, replays, re-pulls, or rebuilds. Deciding whether an article is fake is outside the system; the reviewer's decision is an input.

The design must compare fanout-on-write and fanout-on-read and may use a hybrid when publisher popularity, story-cluster fan-in, or breaking-news reach makes one strategy unsafe.

One report gives a workload baseline of 1,000 publishers with at most 1,000 articles per publisher per day; another describes tens of thousands of publishers.

For an explicit growth-and-burst planning horizon, assume up to fifty thousand registered publishers, ten million daily active users, two thousand article ingestions per second during bursts, and one hundred thousand feed reads per second at peak; this stress envelope does not assume every registered publisher emits its daily maximum simultaneously.

Healthy feed and search reads should finish within 300 milliseconds at p95, ordinary articles, cluster assignments, and searchable projections should become eligible within 60 seconds at p95, preference changes within five seconds, and breaking news and withdrawals within ten seconds.

Retain normalized article and story-cluster metadata for ninety days, preserve accepted articles, cluster history, and preferences through a single-zone failure, and make feed and search projections rebuildable.

Exclude full article hosting, ad ranking, comments, reactions, social graphs, paywall access, and training the topic or semantic-similarity models.

What to build

  1. The platform can periodically pull and idempotently ingest publisher-unique article metadata with classifier-assigned topics, assign high-confidence cross-publisher coverage to a versioned story cluster, and preserve every member and attribution even when the cluster changes.
  2. A user can search accepted news metadata and excerpts by keyword with optional topic, publisher, and publication-time filters, receiving one representative per story cluster with attribution, relevance-and-recency ordering, and stable pagination.
  3. A user can follow or unfollow topics, possibly hundreds of them, and named publishers, and subsequent feed reads use the current preference version.
  4. A user can page through matching recent stories, or receive a precomputed cached default mix when no preferences exist, while seeing at most one representative per story cluster in a coherent cursor.
  5. Authorized editors can activate and expire breaking-news items whose story cluster appears once in every user's feed regardless of preferences.
  6. An authorized reviewer can withdraw an article or a whole story cluster, such as confirmed fake news, so that it disappears from every feed and search result within ten seconds and stays hidden through caches, replays, re-pulls, and rebuilds.

At scale

  • One report gives a baseline of 1,000 publishers with at most 1,000 articles per publisher per day; another describes tens of thousands of publishers whose APIs are pulled on a schedule.
  • For this exercise, capacity-plan for growth to fifty thousand registered publishers, ten million daily active users, and bursts of two thousand article ingestions plus one hundred thousand feed reads per second without assuming every publisher reaches its daily maximum at once.
  • For this exercise, target 300 milliseconds p95 for healthy feed and search reads, 60 seconds p95 for ordinary article, story-cluster, and searchable-projection eligibility, five seconds for preference changes, and ten seconds for breaking-news visibility and for withdrawals.
  • For this exercise, retain normalized article and cluster metadata for ninety days, keep accepted publisher articles, cluster history, and user preferences durable through a single-zone failure, and make derived feed state rebuildable.
  • For this exercise, publisher popularity and user preference fanout are highly skewed, one event may create hundreds of cross-publisher members, and one breaking story may need to reach every daily active user.
  • Users may follow hundreds of topics; for this exercise, plan for up to five hundred followed topics per user while keeping the 300 millisecond feed target.