Skip to content

Case study: YouTube (video streaming)

Design video streaming at scale: resumable chunked uploads, a parallel transcoding DAG for adaptive bitrate segments, and ISP-embedded caches delivering 100 Tbit/s.

35 min9 steps

By the end you can
  • Estimate storage growth, transcoding compute, concurrent streams and egress bandwidth from watch time
  • Design a chunked upload and parallel transcoding DAG that produces adaptive bitrate segments
  • Explain how segmented adaptive bitrate streaming works with CDNs and origin shields
  • Predict what happens during a viral premiere, an upload surge or a CDN edge outage

Requirements

Upload, transcode, stream

  • Resumable hours-long uploads; adaptive bitrate; seeking; eventual view counts

Delivery dominates

  • Startup ~2s; durable originals; ~100 Tbit/s scale assumption

What separates video streaming from almost every other web system design?

Answer this step to continue.

What this lesson simplifies

  • The simulated cell models one CDN edge with an origin shield and a 2.5 Gbit/s origin uplink, not thousands of ISP-embedded appliances.
  • Live streaming (low-latency HLS/DASH and real-time ingest) is out of scope; this design covers video on demand.
  • DNS TTL is scaled to 300 ms so CDN failover completes within the 3-second simulation window.

Sources

  1. R. Pantos, W. May. HTTP Live Streaming (RFC 8216), 2017.
  2. Netflix Technology Blog. Per-Title Encode Optimization, 2015.
  3. Netflix Technology Blog. High Quality Video Encoding at Scale, 2015.
  4. Netflix. Open Connect Overview, 2021.

Reviewed by Content lead on . Revision 1.