Design Live Chat Replay and Comments for YouTube Premieres
Last updated: November 29, 2026
Quick Overview
Design the system that powers live chat during a YouTube Premiere with up to a million concurrent viewers, then replays those chat messages in sync when someone watches the video later.
0
0
0 solved
Design the system that powers live chat during a YouTube Premiere with up to a million concurrent viewers, then replays those chat messages in sync when someone watches the video later.
A YouTube-flavored question in Google onsites. The interviewer looks at how you handle extreme write and read fan-out in one hot room, ordering, moderation hooks, and how live data becomes a replayable artifact keyed to video time.
What the Interviewer Expects
- Shard a single hot chat room for both ingest and delivery
- Downsample what each viewer sees instead of delivering every message
- Attach a video offset to every message for replay
- Insert moderation before broadcast with a latency budget
- Persist chat as time-bucketed segments for replay
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 Super Chat paid messages get guaranteed delivery and pinning?
- How would you let a creator delete a message already broadcast?
- What changes for a 24/7 live stream instead of a 2 hour Premiere?
- How do you handle viewers seeking during replay?
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
- Viewers post messages; others see them within ~2 s.
- Peak: 1M concurrent viewers, 5k messages/s posted. Delivering all 5k/s to 1M clients is 5B deliveries/s, which is both impossible and unreadable...
High-Level Design
- Ingest: clients send to a stateless Chat Frontend, which assigns
video_offset_ms(from the Premiere's start time) and forwards to a Moderation stage (blocklists, spam model, creator-defin...