System Design Classic
A news feed system generates personalized content streams for each user by aggregating posts from their connections and ranking them by relevance. The core challenge is the fan-out problem: when a user with millions of followers posts, how do you update millions of feeds efficiently? Recommended for engineers building social platforms where personalized content delivery and fan-out scalability are critical to user engagement.
Share this architecture with your network
Feed generation uses a hybrid fan-out: posts from regular users are pre-computed into follower feeds stored in Memorystore, while posts from high-follower users are merged at read time. Pub/Sub handles the real-time event stream for feed updates. The ranking service runs on Cloud Run with ML-based scoring models. Firestore stores the social graph with subcollection patterns for efficient follower lookups.
Multi-Tenant SaaS Platform
Generic SaaS
Notification System
System Design Classic
Dropbox File Storage System
Dropbox
Chat Application System
System Design Classic
Search Autocomplete System
System Design Classic
Instagram Photo Sharing System
Instagram / Meta
News Feed System
Remix this architecture in Canvas