Design YouTube Live Streaming With Low Latency
Last updated: November 29, 2026
Quick Overview
Design the system that ingests a live stream from a creator and delivers it to millions of concurrent viewers with a few seconds of latency, plus live replay afterward.
0
0
0 solved
Design the system that ingests a live stream from a creator and delivers it to millions of concurrent viewers with a few seconds of latency, plus live replay afterward.
Live is a distinct challenge from on-demand YouTube: there is no time to transcode ahead and audiences spike instantly. Interviewers check ingest, real-time transcoding, segment-based delivery, and the latency versus stability trade-off.
What the Interviewer Expects
- Designs ingest with redundancy near the creator
- Transcodes in real time into an ABR ladder
- Explains segment and chunk-based delivery via CDN
- Quantifies latency sources and how to reduce them
- Handles the concurrency spike and DVR 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
- Where does latency come from end to end, and which part do you cut first?
- How do you handle the ingest connection dropping briefly?
- How do you serve 5M concurrent viewers of one 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: creator pushes a stream (RTMP or SRT or WebRTC); viewers watch with adaptive bitrate; DVR (seek back up to a few hours); archive as VOD after the stream ends.
Non-functional: mill...
High-Level Design
- Ingest edge close to the creator (anycast) terminates the stream; a backup ingest endpoint receives a redundant stream for big events.
- Live transcoder decodes and encodes in real time in...