40. Design Video Upload and Streaming (YouTube)
1
The interview prompt2
40.1 What do you ask first?3
40.2 How big is this, really?4
40.3 What are the doors?5
40.4 What do we store?6
40.5 What does the whole system look like?7
40.6 How does the upload pipeline work?8
40.7 How does transcoding work?9
40.8 How does adaptive bitrate work?10
40.9 How does CDN delivery work at this scale?11
40.10 How do you count views?12
40.11 What would you say in the last five minutes?13
Score yourself14
Variations to practise15
Sources16
Code lab40. Design Video Upload and Streaming (YouTube)
Sources
3 min read+10 XP
Source notes
- YouTube's statement of more than 500 hours of video uploaded every minute (2019): reported by Tubefilter, May 2019. Checked 2026-10-08.
- HLS segment guidance and adaptive streaming: see Chapter 26's source notes (Apple HLS authoring specification, RFC 8216, MPEG-DASH).
- ISP-embedded caches: Netflix Open Connect and Google Global Cache documentation.
- Ladder bitrates, watch hours, encode speed, view thresholds and popularity skew are interview assumptions agreed in Step 1, not figures for any real service. Arithmetic computed 2026-10-08.
- Resumable upload, segment-parallel transcoding time, ladder storage, ABR vs fixed playback, popularity share and view de-duplication: tested 2026-10-08 (
code/ch40_video.py, all checks pass).