Design a personalized news feed for a social network with billions of events per day. Cover write fan-out vs read fan-out, ranking, and cold start.
- Feed models: push (fan-out-on-write) vs pull (fan-out-on-read) and hybrids
- Storage: activity logs, user timelines, dedupe, TTL
- Ranking: features, freshness, graph signals, experimentation
- Caching: per-user feed cache; invalidation and precompute
- Systems: backfill, re-ranking, nearline vs offline pipelines
- 💡Hot users and celebrities create write hotspots.
- ⚠️**Ignoring Super-users' Fan-out:** Failing to explicitly design for the write amplification caused by users with millions of followers can lead to severe performance bottlenecks and system instability.
- ⚠️**Over-reliance on a Single Fan-out Model:** Choosing only a push or only a pull model without understanding their respective scaling limitations for different user bases, rather than adopting a hybrid strategy.
- ⚠️**Lack of Freshness in Ranking:** An ML ranking model solely optimized for engagement might prioritize older, 'proven' content, leading to a stale user experience if freshness isn't explicitly factored in.
- ⚠️**Inefficient Data Storage for Timelines:** Storing full content objects directly in user inboxes instead of references, or neglecting to implement TTL, leading to massive storage costs, slower reads, and difficulty managing data at scale.
- ⚠️**Neglecting Cold Start Strategies:** Not having robust mechanisms to provide a meaningful and engaging feed for new users or inactive users, which can significantly hinder user onboarding, adoption, and long-term retention.
- ❓How do you prevent spam/duplicates?
- ❓What about “stories” style feeds?
Ready to prove your AWS ML knowledge?
Practice with free Machine Learning Specialty (MLS-C01) exam questions. Instant answers and detailed explanations — no account required.
Start free practice quizQuestions that share similar topics with this one
Design a URL Shortener (TinyURL)
AdvancedDesign an E-commerce Checkout & Cart
AdvancedHandling Distributed Cache Invalidation
AdvancedCaching Strategy Deep Dive
AdvancedDesign a Global Distributed Rate Limiter
AdvancedDeepen your knowledge with these related blog posts
Edge Computing Meets Edge Caching: Building Real-Time Applications at the Network Edge
Exploring how edge computing and caching converge to enable ultra-low latency applications. From personalized content delivery to A/B testing at the edge, learn how to architect systems that feel instantaneous regardless of user location.
Edge Compute with CDNs: Caching, Workers, and Safe Gradual Rollouts
Modern apps rely on edge compute and CDN workers for speed, personalization, and safe deployments. Learn practical strategies for caching, gradual rollouts, and real-world use cases.
Aurora vs RDS PostgreSQL vs EC2: Costs, Performance & Multi-Region Compared (2025)
A brutally honest comparison of running PostgreSQL on Aurora, RDS, and EC2. We cover costs, performance, failover, global replicas, and all the tradeoffs AWS won't tell you in their marketing docs.