Design a Cross-Network Social Feed
Design a unified feed and trending search over followed creators from several external content networks.
Problem statement
Design a service that ingests creator posts from several external content networks, presents one combined feed for the creators a user follows, and supports search for trending posts.
For this exercise, assume 5 million users, 500,000 followed creators, 2,000 source events per second, a two-minute home-feed freshness target, a five-minute trending-search freshness target, and 400-millisecond p95 feed reads. External networks use different payloads, quotas, update ordering, and deletion behavior.
Duplicate updates must converge and a source deletion must eventually remove every visible copy. Keep posting and direct messaging outside scope.
What to build
- The platform idempotently normalizes post creates, updates, and deletions from each external network.
- A user can follow or unfollow a canonical creator across networks.
- A user can page through a stable combined feed with honest per-source freshness.
- A user can search posts ranked by a bounded, time-aware trend signal.
At scale
- For this exercise, assume 5 million users, 500,000 followed creators, and 2,000 normalized source events per second.
- For this exercise, target two-minute home-feed freshness, five-minute trend-index freshness, and 400-millisecond p95 feed reads.
- For this exercise, external sources may deliver duplicates, late updates, deletions, and quota failures; each source must fail independently.