Continue where you left off ×
Netflix, the case study
Everything · Open board
The whole set on one board. The map and the seven problems are linked below.
Boards
Before you start. You need to know that a video file is enormous and a web page is tiny, and that somebody pays for every mile a file travels. That is all. The arithmetic in the story half is one subtraction and one percentage.
The idea in 30 seconds
Netflix’s scarce resource is egress, bytes going out, not storage and not computing power.
The answer is to do everything expensive while nobody is waiting, and to cache the finished film inside your internet provider’s building, one hop away.
That network of boxes is Open Connect, the boxes are OCAs, and prediction fills them overnight rather than demand filling them on the day.
Pressing play is three cheap parallel lookups plus your device’s own key exchange. The deciding half is the control plane, the carrying half is the data plane.
The player, not the server, picks the quality chunk by chunk against a buffer. That is adaptive bitrate, and it is why the picture sharpens a few seconds in.
Availability compounds downward, so 30 services at three nines is a 97% page. The fix is a circuit breaker and a fallback on every call, not better components.
Read the story
Lesson 96 of 115 in System Design
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year .
See plans Already a member? Sign in
Or start free : a free account opens lessons 2 and 3 of every track.
In this lesson December 2015: a film that took days to become watchable The ladder that gave a cartoon the same bits as a car chase The number Netflix is short of: egress June 2018: “close to 95%”, and a box inside your internet provider’s building Press play: three cheap questions and no work at all The last hop wobbles, so the player decides: adaptive bitrate The night shift runs twice more Thirty calls at three nines, and the 3% that always breaks 01 · Open Connect CDN 02 · Adaptive Bitrate Streaming 03 · The Encoding Pipeline 04 · Playback Control Plane 05 · Recommendations & Personalization 06 · Microservices & Resilience 07 · Data Platform & A-B The numbers, with sources and dates The videos Terms it explains: bitrate, egress, Open Connect, OCA, control plane, data plane, adaptive bitrate, circuit breaker, 10.0% blended, 20.0%, 205 distinct assets, 495, per year, chunk/segment.
Review System Design
Connects to
The Ledger Everyone Reads (event-driven & the log) System Design Design the Whole Thing (the interview, assembled) System Design The Right Book for the Job (databases, deeply) System Design The Slate, Properly (caching to real depth) System Design Four Systems in One Night (worked designs) System Design Discord, the case study System Design Instagram, the case study System Design YouTube, the case study System Design Cloudflare, the case study System Design Uber, the case study System Design WhatsApp, the case study System Design Twitter (X), the case study System Design Zomato, the case study System Design Google Search, the case study System Design Mark as read Saved in this browser, and to your account when you sign in.