Urgent.News

What's breaking now, across thousands of outlets.

Tech

How Netflix Streams to 200 Million Viewers Without Melting

At 7 PM on a Friday, tens of millions of people press play at roughly the same time. They expect the video to start instantly, never buffer, and look perfect on a phone, a laptop, and a television. No single data center could serve that. No single architecture decision explains it either. Netflix stays up because a dozen boring decisions compound into a system with no single point of failure and…

On a Friday evening, millions of viewers open Netflix simultaneously and expect instant, buffer-free streaming quality across devices. No single data center could handle this demand, so Netflix employs a dozen seemingly mundane decisions to create a system with no single point of failure or bottleneck.

Netflix's video delivery starts with its control plane, which resides in AWS. It handles functions such as sign-in, recommendations, and search, but video content itself comes from Open Connect, a content delivery network built from thousands of appliance servers embedded within internet service providers' networks worldwide. This strategic decision focuses on minimizing distance, ensuring that video content travels the shortest possible distance from viewer to server, thereby reducing latency and lower transit costs.

Netflix's architecture dictates that heavy, static content should be served as close to users as possible, with dynamic work only occurring on origin servers. They encode every movie in dozens of versions with various resolutions, bitrates, and codecs. When a user presses play, the system downloads two-second chunks and selects the quality that the current connection can handle. This adaptive bitrate streaming prevents buffering by delivering lower-quality chunks when connection speeds dip.

The third decision revolves around steering traffic before problems arise. Netflix's control plane constantly measures server health, network conditions, and playback quality, adjusting viewers' servers in real-time. This dynamic load balancing only works because of its constant measurement and adaptation.

The fourth decision focuses on designing for failure. Netflix runs Chaos Monkey, a tool that randomly terminates production servers during business hours. The goal is to prove that the system can withstand random server deaths on a regular Tuesday, ensuring resilience under real-world failures. Teams must practice failure by conducting game days, fault injection, and failure drills to confirm their resilience in practice.

Finally, Netflix separates live components from stale ones. The catalog, recommendations, and search results are computed continuously and served from caches and precomputed views, while playback state, account details, and video position remain live. By separating responsibilities and computation, Netflix keeps the request path thin, focusing on authentication, lookups, and returns.

The takeaway from Netflix's architecture is that scale is not achieved through a single brilliant idea, but rather through a stack of seemingly mundane decisions. Each decision removes a single point of failure and contributes to a resilient, high-performing system. While replicating Open Connect is unrealistic for most organizations, the core principles of edge serving, precomputing, adaptive traffic steering, deliberate failure rehearsal, and thin request paths are essential components of building scalable systems.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

The Unmerged: every repo is a record of what didn't get built

What I Built The Unmerged reads a public repository's history, finds the work that was abandoned in it, and has an open-weight model — running inside your browser tab — say what each piece of that work was trying to do. A repository is read as a record of what got built.

  • The Unmerged analyzes abandoned pull requests, forsaken branches, and reverted commits
  • Uses open-weight language model in browser to interpret abandoned work
  • Demonstrates value of open innovation through accessible GitHub API

More from Wednesday 28 October →