Design Live Comments Streaming for Facebook Live Broadcasts
Last updated: November 29, 2026
Quick Overview
Design the system that lets viewers of a Facebook Live broadcast post comments and see other viewers' comments in near real time, including broadcasts with over a million concurrent viewers.
Meta
November 29, 20260
0
0 solved
Design the system that lets viewers of a Facebook Live broadcast post comments and see other viewers' comments in near real time, including broadcasts with over a million concurrent viewers.
Meta interviewers like this because the write rate is modest but the read fan-out is enormous and bursty. They check whether you push through a subscription tree rather than polling a database, and whether you sample comments for huge audiences.
What the Interviewer Expects
- Model comments as a pub/sub topic per video
- Design a fan-out tree of edge servers
- Explain sampling and prioritization for very large broadcasts
- Keep the durable comment write path separate from the real-time path
- Address moderation and spam before broadcast
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you make sure the broadcaster's friends' comments are shown to them even when sampling?
- How do viewers who join late get recent context?
- What changes for a 10M-viewer World Cup stream?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: post a comment, see a live stream of comments, see replay comments synced to video time later.
Non-functional: comment visible to others within ~2 s; a single broadcast may have 1...
High-Level Design
- Viewer posts to the comment write service, which runs fast integrity checks, persists to a comment store keyed by
(video_id, ts), and publishes to a pub/sub topic for the video. - A **su...