How Netflix streams
Read first: DNS and CDNs, Retries, backoff, and circuit breakers, Service boundaries
The published Netflix design splits a small control path in AWS from the video bytes on Open Connect appliances close to viewers. The OSS years included an edge gateway, client-side load balancing, and Hystrix, which is published history and not a claim about their current runtime. Appliances serve encoded media over HTTP and do not hold member data.
Netflix published an architecture with two layers, and this page teaches that published history. It is the architecture they wrote about. It is not a claim about this year’s org chart. One layer decides. The other layer moves bytes. The decision is small, personal, and lives with the services that know who the member is. The bytes are large, encoded in advance, and want to sit near the viewer. A design that pushes every video segment through the services that hold member data drags a file transfer through an application fleet. A design that puts member data on boxes in other people’s networks has placed a user database where it does not belong.
The problem
Playback is two requests that people draw as one. The player needs to know what to fetch and whether this member may fetch it. That answer depends on the catalog, on the account, and on which copy of the file is actually available and healthy. Then the player needs the bytes, continuously, for as long as the title runs. The first answer is a small response. The second is the bulk of the traffic.
Those two shapes do not want the same building. A control request wants discovery, an edge, and a way to stop calling a dependency that is dead. A media request wants a cache of immutable bytes close to the client, the way a CDN wants media and does not want personalized HTML. If you only draw the control fleet, you have designed the small decision and called it streaming. If you only draw a cache, you have no account, no health, and no idea which box has the file.
There is a third constraint on the cache, because the cache does not live only in a building you own. Appliances sit in internet exchanges and inside ISP networks. Anything stored on them is stored in a place a member-data review should flinch at. The published split keeps the bytes there and keeps the member somewhere else.
The OSS years of the control plane are published history. Hystrix, the circuit breaker from those years, is in maintenance. Keep that name in the history, and keep it out of any claim about what they run now.
The design
Control and product services, as published, in AWS. Discovery, so a caller can find instances. An edge gateway in the Zuul era, the front door a gateway is: the place the client arrives, not the place the business rule hides. Client-side load balancing: the caller has instances from discovery and picks one, instead of sending every call through a single balancer hop. And, in the Netflix OSS years, Hystrix circuit breakers.
A breaker is the three states from retries and breakers. Closed, calls go through. Open, calls fail immediately for a cool-down so a dead dependency does not hold every thread. Half-open, a few trial calls decide whether to close again. That pattern is what the OSS years published, with Hystrix as the library. The library is in maintenance, so the three states are what you carry forward.
Chaos Monkey sits in the same era’s toolbox. It killed instances in production on purpose. The point, as the course uses it, is the hypothesis you are testing, a small blast radius, an abort, and a rollback you have practiced. Killing instances is the tool. The lesson is whether the control plane still serves when an instance is gone. That belongs to the deploy and chaos habits, not to the video file.
Open Connect, the byte path. This is a different system. Appliances sit in internet exchanges and inside ISP networks. Qualifying ISPs get the hardware. They supply power, space, and connectivity. An appliance stores encoded media and serves it over HTTP. It does not store viewing history, DRM state, or member data. A box you placed at an ISP is a cache of files, not a database of people.
The appliance reports three things to a control plane in AWS: its health, the files it has, and BGP routes it learned. The control plane steers the player to a nearby appliance that has the file and is healthy. Steering is a decision. The fetch that follows is HTTP to the appliance, not a proxy of the bytes back through the control services. Using the course’s planning band, a long round trip is tens of milliseconds before queueing, from the latency page. Putting the bytes near the viewer is how that distance leaves the segment path. The number is the course’s band, not a Netflix measurement.
Filling a new title happens off the peak, including overnight. The copy of a new file onto appliances is scheduled away from the hours when playback already occupies the network. A title can be in the catalog before every nearby box has the bytes. Steering has to know inventory, which is why “the files it has” is a report and not an assumption.
Playback itself is adaptive bitrate, the problem a video design has to name. The title is encoded at several rung sizes. The player picks a rung as bandwidth moves. A smaller rung is less to fetch and a worse picture. The player can step down instead of stalling, and step up when the path allows.
flowchart TD
player[Player]
steer[Steering from the control plane]
box[Nearby healthy appliance]
media[HTTP fetch of encoded media]
report[Health files and learned routes]
player --> steer --> box
box --> media
media --> player
box --> report
report --> steer
The player asks for a decision, then fetches bytes from the appliance that decision named. The appliance’s reports are how the next decision knows who is healthy, who has the file, and what routes that box has learned. Member data never has to ride the bottom arrow.
What the control plane is for, once bytes have a home. Discovery, the Zuul-era edge, client-side balancing, and the breaker years are how the small services stay up and find each other. They are a service boundary story: many deployables, a failed dependency that must not pin every thread, a client that has to choose an instance. None of that moves the video. Open Connect is the boundary where the bytes stop being an application problem. Keeping the stories in one diagram, with one box labeled “backend,” is how both designs get muddled.
What they traded
| Choice | What you gain | What you spend |
|---|---|---|
| Control in AWS, bytes on Open Connect | Small decisions stay with member data, large immutable bytes stay near the viewer | Two systems, and a steering step between them |
| Appliances at exchanges and inside ISP networks | The byte path does not cross the country for every segment | Hardware in places you do not fully control, which is why member data stays off the box |
| ISPs get the hardware and supply power, space, and connectivity | The appliance can live on the ISP’s network | You depend on a qualifying ISP for space and power, and you still operate the box |
| Reports of health, files on disk, and learned BGP routes | Steering can require nearby, present, and healthy | A stale report sends the player to a box that no longer matches |
| Fill new titles off peak, including overnight | Copying files does not ride on top of evening playback | A just-launched title is not on every nearby box yet |
| Several bitrate rungs, player picks as bandwidth moves | The player can step down instead of stalling | You encode and store more than one copy of the title |
| Hystrix in the published OSS years | A dead dependency failed fast instead of holding threads | The library is in maintenance, so the name is history, and the three breaker states are the part that travels |
| Chaos Monkey killing instances on purpose | You find out whether an instance death hurts | Without a hypothesis and a blast radius, you have just caused an outage |
The failure to walk is a steering decision made from a stale or partial report. The appliance was healthy when it last reported, and then it filled its disk or lost the file. The player is sent there, the HTTP fetch fails, and the control plane has to be willing to name a different box. If the only copy of “what is healthy” lived on the appliance and nowhere else, a dead appliance could not be avoided, because the thing you would consult is the thing that died. The report lives in the control plane in AWS so the decision can outlive one box.
The second failure is putting the wrong data on the appliance because it was convenient. Viewing history would make “resume” a local read. DRM state would make authorization a local read. Member data would make the account a local read. Each of those also makes a box in an ISP a store of personal data, which the published design refuses. Resume, rights, and identity stay on the control side. The appliance serves encoded media over HTTP and that is the list.
The third failure is treating Hystrix as a current architecture diagram. The OSS years included it, along with the Zuul-era gateway, discovery, and client-side balancing. That is worth understanding because the breaker, the edge, and the client choosing an instance are still the shapes of a control plane. Saying “Netflix runs Hystrix” as a statement about today overclaims the facts and ignores that the library is in maintenance. Say “in the published OSS years” and then talk about open, half-open, and closed.
What to steal
Steal the split. A small control decision, and a large cache of immutable bytes close to the user. The player should not pull the file through the services that hold the account. The cache should not hold the account so that it can avoid the control plane. Open Connect is the large version: appliances in exchanges and in ISP networks, hardware to qualifying ISPs, power and space and connectivity from the ISP, HTTP for the bytes, reports of health and inventory and learned routes back to AWS, fill off peak, several rungs chosen by the player.
A team of five steals the split and rents the cache. Put immutable media on a CDN or on object storage behind a cache, keep member data and authorization in the service you already operate, and steer the player to a URL that can actually serve the bytes. You do not ship hardware, you do not speak BGP from an appliance you built, and you do not adopt a breaker library because a published OSS stack named one. You do put a timeout and a breaker, the three states, on the control call the player cannot proceed without. You do encode more than one rung if viewers sit on links that change. You do fill or publish new objects outside the peak if the copy itself is heavy enough to hurt playback.
Leave Chaos Monkey’s name on the shelf until you have a hypothesis. “Kill an instance and see if steering still works” is a test of the control plane. “Kill an instance” with no abort and no rollback is an outage you scheduled. The tool is not the lesson.
If this shows up in a design round, draw two paths in the first five minutes and say which one the user waits on for bytes. Then say what the cache is forbidden to store. That is the published idea, and it is enough. The Zuul era and Hystrix are the historical control plane, labeled as history, not the punch line.
Check yourself
Which control-plane pieces belong to the published Netflix OSS years, and why is it wrong to say they run Hystrix now?
The published control and product services ran in AWS with discovery, an edge gateway in the Zuul era, client-side load balancing, and Hystrix circuit breakers. That is published history, not a map of the current org. Hystrix is in maintenance, so naming it as the breaker they run now overclaims both the facts and the library’s status. The idea that travels is the breaker states: closed, open, and half-open.
What does an Open Connect appliance store and serve, and which three kinds of data does it leave out?
It stores encoded media and serves it over HTTP. It does not store viewing history, DRM state, or member data. Qualifying ISPs get the hardware and supply power, space, and connectivity. The box sits in internet exchanges and inside ISP networks, which is why personal data stays on the control side.
An appliance reports to the control plane in AWS. What three things does it report, and what decision uses them?
Health, the files it has, and BGP routes it learned. The control plane steers the player to a nearby appliance that has the file and is healthy. Nearby without the file, or healthy without the file, is the wrong choice, especially while a new title is still being filled off peak.
Why are new titles filled off the peak, including overnight, and what does that do to steering right after a launch?
Filling is copy traffic. Doing it off peak, including overnight, keeps that copy from competing with playback. A title can be in the catalog before every nearby appliance has the bytes. Steering has to use the inventory report and send the player to a box that has the file, not merely to the closest box.
Based on: Netflix published architecture of the OSS years; Open Connect.