<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shivam Dobariya on Medium]]></title>
        <description><![CDATA[Stories by Shivam Dobariya on Medium]]></description>
        <link>https://medium.com/@shivam8.sd?source=rss-bc940db02443------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7MDv26FNY116WuxMARHvdw@2x.jpeg</url>
            <title>Stories by Shivam Dobariya on Medium</title>
            <link>https://medium.com/@shivam8.sd?source=rss-bc940db02443------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 21:28:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shivam8.sd/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[“Netflix made their databases up to 75% faster. The reason? AWS Aurora.”]]></title>
            <link>https://medium.com/@shivam8.sd/netflix-made-their-databases-up-to-75-faster-the-reason-aws-aurora-6341b77350f5?source=rss-bc940db02443------2</link>
            <guid isPermaLink="false">https://medium.com/p/6341b77350f5</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[netflix]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Shivam Dobariya]]></dc:creator>
            <pubDate>Fri, 05 Dec 2025 20:57:59 GMT</pubDate>
            <atom:updated>2025-12-05T20:57:59.614Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>Netflix Made Postgres 75% Faster with Aurora — Just in Time for the Warner Bros Deal</strong></blockquote><p>Recently I saw a post about Netflix:</p><blockquote><em>“Netflix made their databases up to 75% faster.<br> The reason? AWS Aurora.”</em></blockquote><p>At the same time, Netflix is in the news for something even bigger: a deal to buy Warner Bros Discovery’s film &amp; TV studios plus HBO / HBO Max in a transaction valued at around $80B.</p><p>Put those together and you get a clear theme:</p><blockquote><em>Netflix is upgrading its core systems </em>before<em> it becomes an even bigger entertainment giant.</em></blockquote><p>This post is a short breakdown of what changed, why it matters, and what we can learn.</p><h3>What Actually Changed?</h3><p>Before:</p><ul><li>Netflix ran <strong>self-managed PostgreSQL-compatible databases on EC2</strong>.</li><li>Different teams managed their own clusters, backups, upgrades, and failovers.</li><li>Under heavy load they saw <strong>latency spikes</strong> and had to keep tuning.</li></ul><p>Now:</p><ul><li>They’re consolidating those workloads onto <strong>Amazon Aurora PostgreSQL</strong>.</li><li>Same Postgres language and drivers, but a different, managed engine.</li></ul><p>From Netflix’s numbers on this migration:</p><ul><li>Up to <strong>75% better performance</strong> on key services</li><li>Roughly <strong>28% lower database costs</strong></li><li>Big latency drops in services like their Policy Engine and Spinnaker</li></ul><p>So why does Aurora help this much?</p><h3>Why Aurora Helps: The Simple Version</h3><p>Aurora PostgreSQL gives Netflix a few big wins:</p><ol><li><strong>Postgres compatibility</strong><br> They keep the same SQL and most of the same tooling, so migration risk is lower.</li><li><strong>High availability built in</strong><br> Aurora automatically replicates data across multiple Availability Zones and can fail over when a node or AZ goes down.</li><li><strong>Managed operations</strong><br> Backups, patches, monitoring hooks and storage scaling are handled by AWS instead of custom scripts and on-call playbooks.</li><li><strong>A different storage design</strong><br> Aurora separates <strong>compute</strong> (the DB instance) from a distributed <strong>storage layer</strong>. Instances send log records to storage nodes instead of constantly writing full data pages to local disks, which can mean higher throughput and lower latency.</li></ol><p>And there’s one subtle detail that matters a lot: <strong>double buffering</strong>.</p><h3>Double Buffering in One Minute</h3><p>On a “normal” Postgres server you basically have two caches:</p><ol><li><strong>Postgres shared buffers</strong> — the DB’s own cache</li><li><strong>The OS page cache</strong> — the operating system’s cache</li></ol><p>The same data can be cached in <em>both</em> places. That’s called <strong>double buffering</strong>.</p><p>The downsides:</p><ul><li>You waste RAM caching identical data twice</li><li>It’s harder to know how much of your hot data really fits in memory</li><li>Tuning becomes guesswork: more memory to Postgres or more to the OS?</li></ul><p>Aurora PostgreSQL works differently. It doesn’t rely on local database files and the OS page cache in the traditional way. Instead, it leans heavily on Postgres’s own buffer cache and its dedicated storage layer.</p><p>In practice, that means:</p><ul><li>Less double caching</li><li>More of the instance memory can be used directly for the database buffer pool</li><li>More hot data stays in RAM → fewer disk reads → lower latency</li></ul><p>That’s one of the quiet reasons Netflix gets both <strong>speed</strong> and <strong>cost savings</strong> from the move.</p><h3>Why This Matters More With Warner Bros</h3><p>Now layer this on top of the Warner Bros Discovery deal.</p><p>If it goes through, Netflix will:</p><ul><li>Add Warner Bros’ huge film and TV library</li><li>Take on HBO / HBO Max shows and subscribers</li><li>Merge two large streaming and content operations</li></ul><p>From a systems point of view, that means:</p><ul><li>Way more <strong>subscribers and concurrent sessions</strong></li><li>A much larger <strong>catalog of titles and metadata</strong></li><li>More complex <strong>rights, billing, identity, ads, and analytics</strong></li></ul><p>In that world, cutting database latency by 75% and reducing operational overhead isn’t a nice optimization. It’s survival.</p><p>Aurora lets Netflix:</p><ul><li>Keep critical relational data (accounts, entitlements, catalog, payments, experiments) on <strong>multi-AZ, managed infrastructure</strong></li><li>Scale traffic more predictably as they merge systems</li><li>Free engineers to work on <strong>integration and new features</strong> instead of babysitting EC2-hosted Postgres clusters</li></ul><p>They’re effectively <strong>upgrading the engine before attaching a much heavier trailer</strong>.</p><h3>Takeaways for the Rest of Us</h3><p>Even if you’re not Netflix, there are some useful lessons here.</p><h3>1. Your “infra tax” is real</h3><p>Self-managed databases feel powerful, but you pay in:</p><ul><li>Upgrades, backups, failovers, capacity planning</li><li>On-call time when latency spikes</li><li>Fragmented setups across teams</li></ul><p>At some point, a managed service is actually cheaper and safer overall.</p><h3>2. Know your caching layers</h3><p>Double buffering is a nice mental model:</p><ul><li>Where is your data cached today (DB, OS, app, Redis)?</li><li>Are you caching the same thing multiple times?</li><li>Can you simplify and make sure your hot data fits clearly in RAM?</li></ul><p>Just answering those questions can give big performance wins.</p><h3>3. Fix the foundation before the big leap</h3><p>Netflix moved to Aurora <strong>before</strong> the Warner Bros deal fully lands.<br> That order is smart: stabilize the core, then grow.</p><h3>Closing</h3><p>“Netflix made Postgres 75% faster” sounds like an engineering flex.<br> Next to “Netflix is buying Warner Bros and HBO”, it looks more like a strategic necessity.</p><p>For me, the takeaway is simple:</p><blockquote><em>System design isn’t just for interview questions.<br> It’s how companies turn architecture choices into business advantages.</em></blockquote><p>If your traffic or user base suddenly doubled, would your current database setup hold up?<br> If not, maybe it’s time to start planning your own “Aurora moment”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6341b77350f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>