SystemDesignDraw Logo
SystemDesignDraw

Architecture Whiteboard & Math

Streaming & MediaAdvanced Difficulty9 min read

Design Netflix / YouTube Video Delivery

Streaming high-definition video to millions of smart TVs and mobile phones requires breaking large 10GB video files into tiny 5-second chunks, encoding each into 20 different resolutions, and caching them right inside local ISP networks.

Estimated Traffic500,000 Video Chunks/sec
5-Year Data Footprint150 Petabytes
Target Latency< 15 milliseconds
Availability Target99.99% (4 Nines)
Need custom numbers for your interview?Calculate QPS & capacity in System Design Cheat Sheet →

Live Architecture Studio

Edit components, modify labels, add databases, or redraw connections directly on this canvas:

Browse Component Stencils & Icons →
Blueprint:Video Streaming CDN
ZenResetExportFull

Loading Video Streaming CDN Blueprint...

Mounting vector diagram elements, nodes, and capacity metrics

Mounting Video Streaming CDN...
Loading
Topology Nodes (8) Interactive Canvas
⚡ Interactive Architecture Diagram • Drag & Drop Enabled

1. Problem & Challenge

If 100,000 people in Chicago click Play on Stranger Things at 8:00 PM, streaming from a central California server will melt the internet backbone. The solution is distributed edge caching.

2. Core Building Blocks & Responsibilities

👉 Desliza la tabla para ver roles y responsabilidades
ComponentRolePlain-English Explanation
Transcoding PipelineFormat ConverterSplits raw camera recordings into hundreds of variations: 4K, 1080p, 720p, 480p, and different codecs for iPhone, Android, and TV.
Open Connect CDNLocal ISP Storage ApplianceCustom storage computers placed directly inside local internet providers (like Comcast, Verizon) so video streams locally.
Adaptive Bitrate StreamingAuto Quality SwitcherDetects Wi-Fi speed every 5 seconds. If connection slows down, it drops from 4K to 720p seamlessly without showing a buffering spinner.

3. Step-by-Step Request Flow

1

Creator Uploads Video

Raw master file is uploaded to Amazon S3 cloud storage.

2

Parallel Transcoding

Worker machines chop the video into 5-second segments (.ts / .m4s) and compress them across multiple bitrates.

3

Edge CDN Distribution

Pre-transcoded chunks are pushed overnight to thousands of CDN edge nodes nearest to subscribers.

4. Architectural Trade-offs

Decision:

Public CDN vs Custom Open Connect

Chosen: Custom Open Connect Appliances

Rationale: Netflix delivers so much data that public CDNs (Akamai/Cloudflare) would cost hundreds of millions per year.

Interview Tip

Always mention Adaptive Bitrate Streaming (HLS or DASH protocol). Explain how the client player downloads a manifest file (.m3u8) listing all chunk URLs.

Distributed Architectures

Explore Related System Blueprints

View All Blueprints (13) →
Beginner Friendly6 min read

TinyURL Shortener

A URL shortener converts a long link (like a 100-character article URL) into a compact 7-character key (like tinyurl.com/xyz123) and redirects visitors in under 15 milliseconds.

Study Architecture →
Interview Favorite7 min read

API Rate Limiter

A rate limiter acts as a digital bouncer at the door of your API, ensuring each client stays within their allowed request limits (e.g. 100 requests per minute) and blocking abusive traffic.

Study Architecture →
Real-Time & Geo10 min read

Uber Dispatch Engine

A real-time geospatial dispatch system matches riders with the most optimal nearby drivers using 64-bit H3 hexagonal indexing and 2-second batch optimization, minimizing city-wide pickup ETA and driver idle time.

Study Architecture →
Fintech & Ledger11 min read

Stripe Payments Ledger

A resilient financial payments architecture guarantees strict consistency (CP system) using cryptographic idempotency reservation, double-entry balanced postings, and sharded balance locks.

Study Architecture →
Real-Time & Collab9 min read

Figma Multiplayer Engine

A real-time multiplayer document engine uses stateful sticky session routing and server-authoritative operational ordering to sync 2D scene graphs across worldwide collaborators without locking.

Study Architecture →
Feed & Distributed8 min read

Twitter Timeline & Feed

A timeline generation system balances high write amplification against fast sub-50ms reads by pushing tweets to followers of regular accounts, while pulling and merging celebrity tweets on-demand.

Study Architecture →