Design the YouTube Video Upload and Transcoding Pipeline
Last updated: November 29, 2026
Quick Overview
Design the pipeline that accepts video uploads to YouTube, transcodes them into many resolutions and codecs, and makes them playable as quickly as possible.
0
0
0 solved
Design the pipeline that accepts video uploads to YouTube, transcodes them into many resolutions and codecs, and makes them playable as quickly as possible.
YouTube receives hundreds of hours of video every minute, so this question tests large-scale batch-like compute with user-facing latency. Interviewers look for resumable uploads, chunked parallel transcoding, prioritization, and storage tiering.
What the Interviewer Expects
- Supports resumable uploads of large files
- Splits videos into chunks for parallel transcoding
- Prioritizes a fast first playable rendition
- Designs a job orchestration with retries
- Plans storage and CDN placement by popularity
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 a 4-hour upload playable within minutes?
- How do you choose which codecs to produce for a long-tail video?
- How do you handle a corrupt source file?
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: upload large files (up to many GB) with resume; validate; transcode to an adaptive bitrate ladder (144p to 4K, H.264, VP9, AV1); generate thumbnails; publish manifest for playback.
**...
High-Level Design
- Upload service: client requests an upload session; uploads chunks to an upload endpoint with offsets so it can resume; chunks land in object storage.
- On completion, an orchestrator creat...