Skip to main content
← PROBLEMS / SYSTEM-DESIGN
An end-to-end domain learning journey

Design a Global Video Streaming
& Transcoding Platform (Netflix Scale).

Architect a Netflix-scale global video streaming platform separating a cloud Control Plane from ISP-embedded Open Connect CDN appliances and a distributed Transcoding DAG.
Start the journey7 stages· Last modified Nov 24, 2026
FIRST PRINCIPLES. PRODUCTION SCALE.
The idea to keep with you

When a single bottleneck threatens end-to-end availability, keep 100% of heavy video bytes on ISP-embedded edge CDN appliances via proactive overnight pre-positioning, while the cloud Control Plane handles auth, manifests, and traffic steering.

TL;DR30-second simplified summary
▾

Studio masters flow through S3 into a parallel Transcoding DAG. Popularity models pre-fill Open Connect appliances overnight, while the Playback Service uses live edge telemetry to steer clients to top-3 healthy nodes and Cassandra absorbs 8M+ QPS watch heartbeats.

Before you begin · Building blocksAlready know these? Jump to Stage 01 ↓
Adaptive Bitrate Streaming (HLS/DASH) & Distributed Transcoding DAGs
Adaptive Bitrate (ABR) streaming encodes video into aligned 2–4 second GOP segments across a multi-resolution bitrate ladder so players can switch quality mid-playback without rebuffering.
Full walkthrough · 7 stages
01
foundation

Control Plane (Cloud) vs. Data Plane (ISP Edge CDN).

Why this matters: Keep 99%+ of video bytes inside local ISPs while running business logic in elastic cloud regions.

Think of Control Plane (Cloud) vs. Data Plane (ISP Edge CDN) as the intuition layer for Design a Global Video Streaming & Transcoding Platform (Netflix Scale): Keep 99%+ of video bytes inside local ISPs while running business logic in elastic cloud regions.

Control-plane requests (login, browse, bookmark sync, play-button manifest) are tiny JSON payloads (<10 KB) suited for multi-region cloud microservices. Data-plane traffic (video segments) is massive (15+ Mbps per stream) and must terminate inside local ISP/IXP Open Connect appliances so bytes travel one hop.

FOUNDATION

Cloud Control vs. ISP Data Plane

Cloud Control PlanecomputeOpen Connect EdgestorageClient PlayeroutputStorestreams video segments 1-hop

1.Zero Cloud Egress: 99%+ of video bits never leave the user's local ISP network.

2.Multi-CDN Fallback: Clients get 3 ranked edge URLs for instant mid-stream failover.

Separating cloud control logic from ISP-embedded edge appliances slashes backbone transit costs.

02
foundation

Studio Mezzanine Ingest & Distributed Transcoding Pipeline.

Why this matters: Ingest multi-terabyte raw studio masters reliably and orchestrate parallel ABR encoding.

Think of Studio Mezzanine Ingest & Distributed Transcoding Pipeline as the intuition layer for Design a Global Video Streaming & Transcoding Platform (Netflix Scale): Ingest multi-terabyte raw studio masters reliably and orchestrate parallel ABR encoding.

Studios upload multi-terabyte IMF/ProRes masters via resumable multipart uploads to S3. An Ingestion Orchestrator validates frame checksums, extracts audio/subtitle tracks, and triggers the GOP-parallel Transcoding DAG + CENC packager, writing immutable ABR segments to regional S3 origins.

FOUNDATION

Resumable Ingest & DAG Trigger

Studio UploadingressS3 Raw MezzaninestorageTranscoding DAGcomputeStoretriggers parallel encoding

1.Immutable Masters: Source masters are archived in S3 so new codecs (AV1) can re-encode later.

2.Audio/Sub Isolation: 20+ dubbing tracks package independently from video rungs.

Checksum-verified S3 ingest feeds a stateless transcoding DAG for all device profiles.

Engineering Decision Framework
Problem
How to implement Design a Global Video Streaming & Transcoding Platform (Netflix Scale) without hitting unbounded tail latency, state divergence, or operational fragility.
Naive Solution
Use a single unpartitioned path with unbounded retries and synchronous global coordination.
Why It Fails
Global coordination serializes throughput under load, while unbounded retries amplify transient stalls into full outages.
Alternatives
Compare synchronous strict-consistency paths against bounded asynchronous replication, local caching, or partitioned ownership.
Engineering Decision
When a single bottleneck threatens end-to-end availability, keep 100% of heavy video bytes on ISP-embedded edge CDN appliances via proactive overnight pre-positioning, while the cloud Control Plane handles auth, manifests, and traffic steering.
Trade-Offs
Gains predictable p99 latency and fault isolation in exchange for explicit bounding, observability, and slightly higher implementation complexity.
Decision Exercise · Make the Call

When Design a Global Video Streaming & Transcoding Platform (Netflix Scale) experiences a sudden 5x traffic spike alongside a slow downstream dependency, which engineering choice best protects system stability?

03
intermediate

Proactive Overnight Pre-Positioning vs. Reactive Pull.

Why this matters: Eliminate cold-cache origin storms on major new releases using popularity-predicted overnight fills.

Think of Proactive Overnight Pre-Positioning vs. Reactive Pull as the intuition layer for Design a Global Video Streaming & Transcoding Platform (Netflix Scale): Eliminate cold-cache origin storms on major new releases using popularity-predicted overnight fills.

If 20 million subscribers hit Play on a Friday premiere simultaneously, reactive CDN cache-miss pulls would crush the S3 origin. Instead, a Popularity Predictor pushes new releases and top-ranked catalog titles to Open Connect appliances during off-peak overnight hours (2 AM–6 AM local time) via BGP-aware filling.

INTERMEDIATE

Overnight Predictive Edge Fill

PopularityPredictorcomputeOff-Peak Fill (2-6AM)streamOpen Connect DiskstorageStorepopulates local ISP NVMe

1.Off-Peak Free Transit: ISPs welcome 3 AM fills when backbone links are <20% utilized.

2.Tiered Storage: Hot titles sit on NVMe; long-tail catalog stays on HDD/regional tier.

Overnight predictive filling warms ISP edges before prime-time viewing spikes.

04
intermediate

Real-Time GSLB & Telemetry-Driven Traffic Steering.

Why this matters: Route around overloaded CDN nodes or congested ISP peering links in real time.

Think of Real-Time GSLB & Telemetry-Driven Traffic Steering as the intuition layer for Design a Global Video Streaming & Transcoding Platform (Netflix Scale): Route around overloaded CDN nodes or congested ISP peering links in real time.

Open Connect appliances emit heartbeats every few seconds reporting NIC saturation, disk queue depth, and TCP retransmit rates. When a node exceeds 85% NIC utilization, the Traffic Router dynamically shifts new Playback Service manifest URLs to neighboring healthy appliances or secondary IXP caches.

INTERMEDIATE

Telemetry-Aware Edge Steering

Edge HeartbeatsingressTraffic RoutercomputePlayback ServiceoutputStoresupplies ranked edge list

1.Client Failover: If Edge #1 returns 503, the player immediately retries Edge #2 without stalling.

2.Zero DNS TTL Lag: Steering via manifest URLs reacts in seconds, unlike DNS caching.

Manifest-level steering using live edge telemetry bypasses slow DNS TTL propagation.

05
intermediate

High-Write Viewing History & Continue-Watching State.

Why this matters: Absorb millions of concurrent playback heartbeats (position_sec) without overwhelming OLTP DBs.

250M devices sending a playback-position heartbeat every 30 seconds generates >8M writes/sec.

Writing every heartbeat to a relational DB fails.

INTERMEDIATE

LWW Cassandra Progress Store

Player HeartbeatsingressKafka + FlinkstreamCassandra (LWW)storageStorewrites latest timestamped offset

1.LWW Timestamping: Cassandra `USING TIMESTAMP` prevents out-of-order heartbeats from rewinding progress.

2.Client Debounce: Players always flush a final heartbeat on Pause/Exit.

Coalescing heartbeats into timestamped Cassandra writes scales Continue Watching to 8M+ QPS.

06
advanced

Live Sports & Global Premiere Thundering-Herd Protection.

Why this matters: Survive 20M simultaneous viewers joining a live boxing match or season premiere at 8:00 PM.

Think of Live Sports & Global Premiere Thundering-Herd Protection as the intuition layer for Design a Global Video Streaming & Transcoding Platform (Netflix Scale): Survive 20M simultaneous viewers joining a live boxing match or season premiere at 8:00 PM.

Unlike on-demand movies, live events create a synchronized thundering herd at T=00:00 and require low-latency CMAF chunked transfer (LL-HLS/LL-DASH) plus jittered client startup, tokenized edge authentication (signed URLs verified locally on the edge with HMAC, zero origin round-trip), and degraded-mode static fallback manifests.

ADVANCED

Stateless Edge HMAC Auth & Graceful Degradation

20M Join SpikeingressEdge HMAC VerifygateStatic FallbackModecomputeStoresheds non-critical recommendations

1.Stateless Edge Auth: HMAC-signed URLs let CDN edges validate access with zero cloud calls.

2.Graceful Shedding: If Control Plane saturates, homepage falls back to cached static rows.

Stateless edge HMAC tokens and graceful shedding keep playback alive during 20M-viewer spikes.

07
advanced

Real-Time QoE Telemetry & Automated Anomaly Rollback.

Why this matters: Detect ISP peering degradation or bad codec deployments within 60 seconds via player QoE beacons.

CDN edge metrics alone miss last-mile Wi-Fi or player-decoder crashes.

Every client emits compact QoE beacons (startup_ms, rebuffer_ratio, avg_bitrate, cdn_node_id).

ADVANCED

Closed-Loop QoE Steering

Player QoE BeaconsingressFlink ASN AggregatorcomputeAuto-Steer TriggeroutputStoretriggers automated traffic shift

1.Closed-Loop Control: Player-side QoE telemetry catches last-mile ISP faults invisible to origin.

2.60s Detection: Real-time Druid/Flink rollups isolate bad firmware or peering links fast.

Streaming player QoE beacons close the loop between last-mile experience and CDN routing.

Practice · Explain the consequences

Practice: Make the trade-off yourself.

Question 1 of 3
Score: 0/3

Why does Netflix deploy Open Connect CDN appliances directly inside local ISPs rather than serving all 4K video from AWS S3?

Recommended Learning Flow