Design a distributed news feed
Twitter/Instagram-style timeline: fan-out, ranking, and hot users — a staple at FAANG-style system design.
~28 minDesign interview
Step 0 / 0
Interview script (outline)
- Clarify: Twitter-style public vs Facebook friends; ranking vs chronological; global scale.
- Estimate: DAU, posts/day, follows per user, feed load QPS, celebrity fan-out.
- Fan-out on write vs read — when to hybrid.
- Storage: posts, graph, feed cache; hot users.
- Ranking: candidate gen + ML + mixer; freshness vs engagement.
- Reliability: queue lag, idempotent fan-out, stale feed degradation.