<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nikhil Sarak</title>
    <description>The latest articles on DEV Community by Nikhil Sarak (@nikhilbuilds).</description>
    <link>https://dev.to/nikhilbuilds</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4035085%2F4cbf2c62-af6a-4619-92d0-7c7a3f2a1adc.jpg</url>
      <title>DEV Community: Nikhil Sarak</title>
      <link>https://dev.to/nikhilbuilds</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nikhilbuilds"/>
    <language>en</language>
    <item>
      <title>How Netflix Architecture Handles 300+ Million Users (A Deep Dive)</title>
      <dc:creator>Nikhil Sarak</dc:creator>
      <pubDate>Sat, 18 Jul 2026 11:35:21 +0000</pubDate>
      <link>https://dev.to/nikhilbuilds/how-netflix-architecture-handles-300-million-users-a-deep-dive-ie1</link>
      <guid>https://dev.to/nikhilbuilds/how-netflix-architecture-handles-300-million-users-a-deep-dive-ie1</guid>
      <description>&lt;p&gt;I spent the last few days digging into Netflix's backend architecture — from a YouTube deep-dive to Netflix's own engineering blog — and it's one of the best case studies in distributed systems I've come across. Here's the full breakdown, with diagrams. 👇&lt;/p&gt;

&lt;p&gt;&lt;em&gt;(Written for learning/educational purposes, based on public architecture talks and Netflix's own engineering blog. Not affiliated with or endorsed by Netflix, Inc.)&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The big idea: two brains, one Netflix
&lt;/h2&gt;

&lt;p&gt;Netflix splits its entire system into two deliberately separate halves:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🧠 A &lt;strong&gt;"smart" control-plane brain&lt;/strong&gt; (AWS) that handles auth, billing, recommendations, and decisions&lt;/li&gt;
&lt;li&gt;🧠 A &lt;strong&gt;"dumb" data-plane brain&lt;/strong&gt; (Open Connect, Netflix's own CDN) that just moves bytes — the actual video&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flyyvte26lor4c93k9jii.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flyyvte26lor4c93k9jii.png" alt="Netflix two-brain architecture diagram showing control plane on AWS and data plane on Open Connect CDN" width="800" height="353"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This separation is the single biggest reason Netflix feels instant. Deciding &lt;strong&gt;what&lt;/strong&gt; you watch and &lt;strong&gt;delivering&lt;/strong&gt; it are two completely different problems, solved by two completely different systems. A billing spike or a slow recommendation model can never make your video buffer, because the two paths never touch.&lt;/p&gt;

&lt;h2&gt;
  
  
  The request path (control plane)
&lt;/h2&gt;

&lt;p&gt;When you search for a show, here's roughly what happens:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;→ &lt;strong&gt;AWS Elastic Load Balancer&lt;/strong&gt; absorbs the traffic first — a traffic cop in front of millions of simultaneous requests&lt;/li&gt;
&lt;li&gt;→ &lt;strong&gt;Netty&lt;/strong&gt; (layer-4 networking) handles raw I/O at speed&lt;/li&gt;
&lt;li&gt;→ &lt;strong&gt;Zuul&lt;/strong&gt;, Netflix's own API gateway, routes each request to the right service&lt;/li&gt;
&lt;li&gt;→ &lt;strong&gt;Hystrix&lt;/strong&gt; wraps every downstream call with a circuit breaker, so one dying microservice never takes the whole app down with it&lt;/li&gt;
&lt;li&gt;→ Hundreds of independent &lt;strong&gt;microservices&lt;/strong&gt; (profile, billing, viewing history...) each own their data — &lt;strong&gt;MySQL&lt;/strong&gt; for transactional stuff like billing, &lt;strong&gt;Cassandra&lt;/strong&gt; for high-volume unstructured data like viewing history&lt;/li&gt;
&lt;li&gt;→ &lt;strong&gt;EVCache&lt;/strong&gt; (Netflix's in-memory layer) sits in front of nearly everything for sub-millisecond reads&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9118120tgoisrnppfutf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9118120tgoisrnppfutf.png" alt="Simplified Netflix request path diagram: load balancer to API gateway to circuit breaker to microservices" width="800" height="306"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By the time this pipeline finishes, your app has everything it needs to show the title page — plus a set of URLs pointing to where the actual video lives.&lt;/p&gt;

&lt;h2&gt;
  
  
  The streaming path (data plane)
&lt;/h2&gt;

&lt;p&gt;Once your app knows &lt;strong&gt;what&lt;/strong&gt; to play, it never touches the control plane again. It talks directly to &lt;strong&gt;Open Connect&lt;/strong&gt; — Netflix's own CDN, with caching boxes physically installed inside ISP networks worldwide.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Folk4w8bnvsi2bm0vdyee.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Folk4w8bnvsi2bm0vdyee.png" alt="Netflix streaming delivery diagram: app fetches manifest and license, then streams from nearest Open Connect CDN node" width="800" height="259"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A few things worth calling out here:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Per-title encoding&lt;/strong&gt;: instead of one fixed bitrate ladder for every title, Netflix builds a custom ladder per title based on its visual complexity. A simple cartoon doesn't need the same bitrate as a fast-action scene — Netflix has reported meaningful bandwidth savings from this alone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Adaptive bitrate streaming (ABR)&lt;/strong&gt;: the client constantly measures network conditions and switches between pre-encoded renditions in real time to avoid buffering.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DRM&lt;/strong&gt;: a short-lived license is issued per play request to decrypt the video on-device (longer-lived for offline downloads).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The big data loop
&lt;/h2&gt;

&lt;p&gt;Every click, pause, and rewatch is logged via &lt;strong&gt;Chukwa&lt;/strong&gt; → streamed through &lt;strong&gt;Kafka&lt;/strong&gt; → processed by &lt;strong&gt;Spark&lt;/strong&gt; for the recommendation models, and indexed in &lt;strong&gt;Elasticsearch&lt;/strong&gt; for analytics. Longer-term, the same data lands in &lt;strong&gt;S3&lt;/strong&gt; and gets crunched at scale via &lt;strong&gt;EMR&lt;/strong&gt; (Hadoop).&lt;/p&gt;

&lt;p&gt;This is the pipeline quietly deciding what shows up on your homepage tomorrow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Engineering for failure on purpose
&lt;/h2&gt;

&lt;p&gt;Netflix's &lt;strong&gt;Chaos Monkey&lt;/strong&gt; randomly kills production instances — on purpose, in production, every day — to make sure the system can heal itself before a real outage does it for them. It's part of a whole &lt;strong&gt;Simian Army&lt;/strong&gt; of tools built to break things before something else does:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Latency Monkey&lt;/strong&gt; — injects artificial network delay&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security Monkey&lt;/strong&gt; — scans for misconfigurations like expired certs or open ports&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chaos Gorilla&lt;/strong&gt; — simulates an entire AWS region going down&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The philosophy: if your system is going to fail eventually, you want to be the one who causes it — during business hours, with engineers watching — not at 2am from angry users.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's changed since
&lt;/h2&gt;

&lt;p&gt;A lot of this stack (Zuul, Eureka, Hystrix) is what made Netflix famous in system design interviews — but it's worth knowing Netflix itself has moved on from parts of it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hystrix has been in maintenance mode since 2018.&lt;/strong&gt; Netflix's own GitHub README says they no longer actively review issues or ship new releases, and now recommend &lt;strong&gt;Resilience4j&lt;/strong&gt; for new projects.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The API layer has shifted toward Federated GraphQL&lt;/strong&gt; (an internal framework Netflix calls Domain Graph Service), rather than continuing to build new functionality on the older Zuul-centric model.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The principles — circuit breaking, service isolation, gateway-based routing — are still very much alive. Just implemented differently today, the way any 15+ year old system's toolset evolves.&lt;/p&gt;

&lt;h2&gt;
  
  
  The takeaway
&lt;/h2&gt;

&lt;p&gt;Netflix isn't hard to understand because any single piece is exotic — a load balancer, a gateway, a cache, a message queue. It's hard to understand because of how deliberately everything is &lt;em&gt;separated&lt;/em&gt;: control from delivery, one microservice's failure from another's, and how much effort goes into testing failure before it happens for real.&lt;/p&gt;

&lt;p&gt;That's the real lesson for anyone designing systems at any scale: it's not about which specific technology you pick. It's about isolating blast radius, and never trusting your system's resilience until you've tried to break it yourself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Here's the complete picture, end to end:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnq11u1ov9juvvkmg946m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnq11u1ov9juvvkmg946m.png" alt="Here's the complete picture, end to end:" width="800" height="706"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Would love to hear if anyone's worked with a similar setup — what would you add?&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Sources: Netflix Technology Blog, Netflix/Hystrix GitHub repo, and public architecture talks — full reference list available on request.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>systemdesign</category>
      <category>productivity</category>
      <category>architecture</category>
      <category>backend</category>
    </item>
  </channel>
</rss>
