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.
Live Architecture Studio
Edit components, modify labels, add databases, or redraw connections directly on this canvas:
Loading Video Streaming CDN Blueprint...
Mounting vector diagram elements, nodes, and capacity metrics
Loading Video Streaming CDN Blueprint...
Mounting vector diagram elements, nodes, and capacity metrics
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| Component | Role | Plain-English Explanation |
|---|---|---|
| Transcoding Pipeline | Format Converter | Splits raw camera recordings into hundreds of variations: 4K, 1080p, 720p, 480p, and different codecs for iPhone, Android, and TV. |
| Open Connect CDN | Local ISP Storage Appliance | Custom storage computers placed directly inside local internet providers (like Comcast, Verizon) so video streams locally. |
| Adaptive Bitrate Streaming | Auto Quality Switcher | Detects 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
Creator Uploads Video
Raw master file is uploaded to Amazon S3 cloud storage.
Parallel Transcoding
Worker machines chop the video into 5-second segments (.ts / .m4s) and compress them across multiple bitrates.
Edge CDN Distribution
Pre-transcoded chunks are pushed overnight to thousands of CDN edge nodes nearest to subscribers.
4. Architectural Trade-offs
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.
Explore Related System Blueprints
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.
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.
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.
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.
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.
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.