Code RoomLive feed delivery
HardPrep Room Coding #3405

Live feed delivery

System designDistributed systemsSenior–Staff~50 min

Design the real-time delivery of new posts to followers' live feeds for a social network where most users have hundreds of followers but a few celebrities have 100M+. When a user posts, their followers who are currently online should see it appear in their feed within seconds. The fan-out-on-write approach (push the post into every follower's feed) is great for normal users but catastrophic for a 100M-follower celebrity. How do you deliver new posts to live feeds for both cases without melting on the celebrity case?

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts (data model, bottlenecks, consistency, failure modes) and name the trade-offs you are making.

Clarify5:30 left
Estimate5:30 planned
Design16:30 planned
Deep dive13:30 planned
Failure9:00 planned
0:00
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.