Design a Video Streaming Platform (YouTube / Netflix)
Chunked uploads, parallel DAG transcoding to HLS/MPEG-DASH bitrates, and Adaptive Bitrate CDN delivery
Difficulty: Intermediate · Read time: 9 min · Access: Step-1 Preview + Knoera Pro
How It Works
Video platforms separate two very different pipelines: (1) Upload & Transcoding—uploading raw MP4 (MPEG-4 Part 14) files directly to Object Storage (e.g., Amazon S3) via Presigned URLs, splitting them on GOP (Group of Pictures) keyframe boundaries, and running a parallel DAG (Directed Acyclic Graph) worker pipeline to encode multiple resolutions (`360p`, `720p`, `1080p`, `4K`); and (2) Playback—serving `.m3u8` / `.mpd` manifests and 4-second `.ts` / `.m4s` chunks from CDN (Content Delivery Network) Edge PoPs (Points of Presence) using ABR (Adaptive Bitrate) protocols like HLS (HTTP Live Streaming) and MPEG-DASH (Dynamic Adaptive Streaming over HTTP).
Why It Matters
Streaming a single 2 GB monolithic MP4 file stalls mobile connections, saturates origin servers, and wastes gigabytes when users quit after 20 seconds; HLS/MPEG-DASH ABR lets the player switch smoothly from `1080p` to `480p` mid-video with zero rebuffering.
Interactive Architecture Scenarios
- Parallel Transcoding & Adaptive Bitrate Playback
- Failure Mode: API Upload Proxy & Monolithic MP4