<?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 Subash Palvel on Medium]]></title>
        <description><![CDATA[Stories by Subash Palvel on Medium]]></description>
        <link>https://medium.com/@subashpalvel?source=rss-97c97eb410e9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*pDbffWyubZdK2Hyk</url>
            <title>Stories by Subash Palvel on Medium</title>
            <link>https://medium.com/@subashpalvel?source=rss-97c97eb410e9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 11:10:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@subashpalvel/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[From Spring to Winter: Why Neural Networks Took 60 Years to Win]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://subashpalvel.medium.com/from-spring-to-winter-why-neural-networks-took-60-years-to-win-7e3f88d74f2a?source=rss-97c97eb410e9------2"><img src="https://cdn-images-1.medium.com/max/1920/1*10ujo5i60A0dE4FVzZzDgQ.png" width="1920"></a></p><p class="medium-feed-snippet">In 1989, computer science already had multi-layer neural networks, backpropagation, and mathematical proof that a neural network could&#x2026;</p><p class="medium-feed-link"><a href="https://subashpalvel.medium.com/from-spring-to-winter-why-neural-networks-took-60-years-to-win-7e3f88d74f2a?source=rss-97c97eb410e9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://subashpalvel.medium.com/from-spring-to-winter-why-neural-networks-took-60-years-to-win-7e3f88d74f2a?source=rss-97c97eb410e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e3f88d74f2a</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[subash-palvel]]></category>
            <dc:creator><![CDATA[Subash Palvel]]></dc:creator>
            <pubDate>Thu, 15 Oct 2026 03:37:11 GMT</pubDate>
            <atom:updated>2026-10-15T03:37:11.012Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[The AI Slop Crisis: How Unchecked Synthetic Code Degrades Software Architecture]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://subashpalvel.medium.com/the-ai-slop-crisis-how-unchecked-synthetic-code-degrades-software-architecture-28512305c37b?source=rss-97c97eb410e9------2"><img src="https://cdn-images-1.medium.com/max/1920/1*UWLqGL1JtK-F4tt9eel5sg.png" width="1920"></a></p><p class="medium-feed-snippet">If you generate 500 lines of code in ten seconds, your engineering velocity hasn&#x2019;t increased by 50x. You have simply shifted the cost of&#x2026;</p><p class="medium-feed-link"><a href="https://subashpalvel.medium.com/the-ai-slop-crisis-how-unchecked-synthetic-code-degrades-software-architecture-28512305c37b?source=rss-97c97eb410e9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://subashpalvel.medium.com/the-ai-slop-crisis-how-unchecked-synthetic-code-degrades-software-architecture-28512305c37b?source=rss-97c97eb410e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/28512305c37b</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[subash-palvel]]></category>
            <category><![CDATA[ai-slop]]></category>
            <dc:creator><![CDATA[Subash Palvel]]></dc:creator>
            <pubDate>Thu, 15 Oct 2026 03:29:17 GMT</pubDate>
            <atom:updated>2026-10-15T03:29:17.955Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Why SELECT FOR UPDATE Fails Under Load (And How Compare-And-Swap Solves It)]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://subashpalvel.medium.com/why-select-for-update-fails-under-load-and-how-compare-and-swap-solves-it-8d21feb65b65?source=rss-97c97eb410e9------2"><img src="https://cdn-images-1.medium.com/max/1920/1*z1J3oqr9OnbqHdMmxH3nXw.png" width="1920"></a></p><p class="medium-feed-snippet">When multiple application workers need to update the exact same database record &#x2014; such as decrementing limited product inventory or&#x2026;</p><p class="medium-feed-link"><a href="https://subashpalvel.medium.com/why-select-for-update-fails-under-load-and-how-compare-and-swap-solves-it-8d21feb65b65?source=rss-97c97eb410e9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://subashpalvel.medium.com/why-select-for-update-fails-under-load-and-how-compare-and-swap-solves-it-8d21feb65b65?source=rss-97c97eb410e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d21feb65b65</guid>
            <category><![CDATA[compare-and-update]]></category>
            <category><![CDATA[optimisation]]></category>
            <category><![CDATA[subash-palvel]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Subash Palvel]]></dc:creator>
            <pubDate>Tue, 06 Oct 2026 14:58:28 GMT</pubDate>
            <atom:updated>2026-10-06T14:58:28.017Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Stop Using LLMs for Routing: Inside Jev’s Non-Autoregressive Decision Engine]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://subashpalvel.medium.com/stop-using-llms-for-routing-inside-jevs-non-autoregressive-decision-engine-0e63aaf50015?source=rss-97c97eb410e9------2"><img src="https://cdn-images-1.medium.com/max/1920/1*pf5CEj8yYQ2nZiUxHsGp_w.png" width="1920"></a></p><p class="medium-feed-snippet">If you trigger an LLM to classify a webhook, enforce an authorization guardrail, or return a boolean decision, your service is paying an&#x2026;</p><p class="medium-feed-link"><a href="https://subashpalvel.medium.com/stop-using-llms-for-routing-inside-jevs-non-autoregressive-decision-engine-0e63aaf50015?source=rss-97c97eb410e9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://subashpalvel.medium.com/stop-using-llms-for-routing-inside-jevs-non-autoregressive-decision-engine-0e63aaf50015?source=rss-97c97eb410e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/0e63aaf50015</guid>
            <category><![CDATA[subash-palvel]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Subash Palvel]]></dc:creator>
            <pubDate>Sun, 04 Oct 2026 13:51:48 GMT</pubDate>
            <atom:updated>2026-10-04T13:51:48.882Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How Netflix Streams 4K Video in Under 2 Seconds (The Systems Architecture Behind It)]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">Streaming a two-hour 4K movie on Netflix takes less than two seconds to begin playback. In contrast, downloading a standard 50-megabyte&#x2026;</p><p class="medium-feed-link"><a href="https://subashpalvel.medium.com/how-netflix-streams-4k-video-in-under-2-seconds-the-systems-architecture-behind-it-1e62a10ac1d7?source=rss-97c97eb410e9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://subashpalvel.medium.com/how-netflix-streams-4k-video-in-under-2-seconds-the-systems-architecture-behind-it-1e62a10ac1d7?source=rss-97c97eb410e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e62a10ac1d7</guid>
            <category><![CDATA[netflix]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[subash-palvel]]></category>
            <dc:creator><![CDATA[Subash Palvel]]></dc:creator>
            <pubDate>Thu, 01 Oct 2026 17:17:08 GMT</pubDate>
            <atom:updated>2026-10-01T17:17:08.452Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Why Sizing Your Database Connection Pool Is Completely Counter-Intuitive]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">If your web service starts running out of database connections during a traffic spike, your first instinct is probably to increase the&#x2026;</p><p class="medium-feed-link"><a href="https://subashpalvel.medium.com/why-sizing-your-database-connection-pool-is-completely-counter-intuitive-f75e2c3bd255?source=rss-97c97eb410e9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://subashpalvel.medium.com/why-sizing-your-database-connection-pool-is-completely-counter-intuitive-f75e2c3bd255?source=rss-97c97eb410e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/f75e2c3bd255</guid>
            <category><![CDATA[database-connection]]></category>
            <category><![CDATA[subash-palvel]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Subash Palvel]]></dc:creator>
            <pubDate>Tue, 22 Sep 2026 04:31:47 GMT</pubDate>
            <atom:updated>2026-09-22T04:31:47.031Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Why Your AI is Heavy: The Secret World of LLM Formats and How to Not Break Your Laptop]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://subashpalvel.medium.com/why-your-ai-is-heavy-the-secret-world-of-llm-formats-and-how-to-not-break-your-laptop-96fda96db8c4?source=rss-97c97eb410e9------2"><img src="https://cdn-images-1.medium.com/max/1024/1*2iXV7Umm1tcmYOgxLnjOvg.png" width="1024"></a></p><p class="medium-feed-snippet">I remember the first time I tried to download a &#x201C;brain.&#x201D;</p><p class="medium-feed-link"><a href="https://subashpalvel.medium.com/why-your-ai-is-heavy-the-secret-world-of-llm-formats-and-how-to-not-break-your-laptop-96fda96db8c4?source=rss-97c97eb410e9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://subashpalvel.medium.com/why-your-ai-is-heavy-the-secret-world-of-llm-formats-and-how-to-not-break-your-laptop-96fda96db8c4?source=rss-97c97eb410e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/96fda96db8c4</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[subash-palvel]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[quantization]]></category>
            <dc:creator><![CDATA[Subash Palvel]]></dc:creator>
            <pubDate>Fri, 24 Apr 2026 15:37:33 GMT</pubDate>
            <atom:updated>2026-04-24T15:37:33.775Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[The Invisible Fortress: Why 4 Secret Rules are the Only Thing Stopping Your Bank Account from…]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://subashpalvel.medium.com/the-invisible-fortress-why-4-secret-rules-are-the-only-thing-stopping-your-bank-account-from-7d46c7596ae3?source=rss-97c97eb410e9------2"><img src="https://cdn-images-1.medium.com/max/1024/1*poOj7RoTop8re8GW9MCAXg.png" width="1024"></a></p><p class="medium-feed-snippet">Have you ever been in that heart-stopping moment where you&#x2019;re transferring your last $20 to a friend for pizza, and just as you hit&#x2026;</p><p class="medium-feed-link"><a href="https://subashpalvel.medium.com/the-invisible-fortress-why-4-secret-rules-are-the-only-thing-stopping-your-bank-account-from-7d46c7596ae3?source=rss-97c97eb410e9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://subashpalvel.medium.com/the-invisible-fortress-why-4-secret-rules-are-the-only-thing-stopping-your-bank-account-from-7d46c7596ae3?source=rss-97c97eb410e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d46c7596ae3</guid>
            <category><![CDATA[acid]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[programmer]]></category>
            <category><![CDATA[subash-palvel]]></category>
            <category><![CDATA[acid-principles]]></category>
            <dc:creator><![CDATA[Subash Palvel]]></dc:creator>
            <pubDate>Thu, 16 Apr 2026 02:19:29 GMT</pubDate>
            <atom:updated>2026-04-16T02:19:29.694Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[The Day the Internet Stood Still (And Why I Panicked)]]></title>
            <link>https://subashpalvel.medium.com/the-day-the-internet-stood-still-and-why-i-panicked-1e94afae78a2?source=rss-97c97eb410e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e94afae78a2</guid>
            <category><![CDATA[subash-palvel]]></category>
            <category><![CDATA[subash]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[api-gateway]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Subash Palvel]]></dc:creator>
            <pubDate>Mon, 13 Apr 2026 14:25:49 GMT</pubDate>
            <atom:updated>2026-04-13T14:25:49.636Z</atom:updated>
            <content:encoded><![CDATA[<p>I want you to imagine something for a second. It’s Friday night. You’ve got your popcorn, your favorite blanket, and you’re ready to binge-watch that new show everyone is talking about. You hit “Play.”</p><p>And… nothing. A spinning circle. An error code.</p><p>Now, imagine that isn’t just happening to you. It’s happening to 100 million people at the exact same time. If you were the person in charge of that app, you’d probably want to crawl under your desk and hide, right? I know I would.</p><p>A few years ago, I was working on a small project — a simple website for a local charity auction. I thought I was a genius. I built the whole thing myself. I wrote every line of code in one giant, beautiful file. I called it my “Masterpiece.”</p><p>Then, the auction started.</p><p>Within ten minutes, five hundred people tried to bid at once. My “Masterpiece” didn’t just slow down; it screamed, fell over, and died. The screen went white. The database locked up. Because I had built everything in one big pile, when the “Bidding” part of the site got overwhelmed, it dragged the “Login” part, the “Photos” part, and the “Contact Us” part down into the grave with it.</p><p>That was my first lesson in what we call <strong>Monolithic Architecture</strong>. And it’s the reason why your favorite indie apps often crash while giants like Netflix, Uber, and Amazon seem totally invincible.</p><p>Today, I’m going to take you behind the curtain. I’m going to show you how the biggest companies on Earth build “Invisible Cities” of code that can survive almost anything. And don’t worry — you don’t need a computer science degree to get this. You just need to understand how a kitchen works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o5Vsr0qKeT0p--nDorojLA.png" /></figure><h3>Part 1: The Legend of the Overworked Chef (The Monolith)</h3><p>Before we talk about the fancy stuff, we have to understand the old way of doing things. In the tech world, we call this a <strong>Monolith</strong>.</p><p>Think of a Monolith like a tiny, one-person food truck. Let’s call the chef “Tony.”</p><p>Tony is a hero. He does everything. He takes the orders. He flips the burgers. He rolls the sushi. He bakes the chocolate lava cakes. He even handles the money and cleans the floors. When there are only five customers, Tony is the fastest guy in town. He doesn’t have to talk to anyone else, so there’s no confusion. Everything is in his head.</p><p>In software, a Monolith is one giant codebase where every feature is tangled together. The “User Login” code is sitting right next to the “Video Player” code, which is touching the “Credit Card” code.</p><h3>Why do people love Monoliths?</h3><p>Honestly? Because they are easy to start. When I started my auction site, I loved my Monolith. I could change a color on the home page and update the whole site in seconds. It was cozy. It was simple.</p><h3>The “Oh No” Moment</h3><p>But here’s the problem with Tony’s food truck. What happens if Tony accidentally burns his hand while flipping a burger?</p><ul><li>Does the sushi keep moving? No.</li><li>Does the lava cake stay in the oven? No.</li><li>The entire truck shuts down because the “System” (Tony) has a single point of failure.</li></ul><p>This is exactly what happened to Twitter back in 2010. Remember the “Fail Whale”? Whenever too many people tweeted at once, the whole site would go down. Why? Because the database — the part that stores the tweets — would get overwhelmed. And because everything was one big Monolith, the database failing meant you couldn’t even look at your own profile or change your settings. The whole “truck” was on fire.</p><h3>Part 2: The Birth of the “Invisible City” (Microservices)</h3><p>Eventually, the big players realized they couldn’t live like this anymore. Netflix couldn’t afford to let a glitch in their “Rating System” stop people from watching <em>Stranger Things</em>.</p><p>So, they did something radical. They fired the “One-Chef Truck” idea and built a <strong>Restaurant Empire</strong>.</p><p>They broke their one giant app into hundreds of tiny, independent apps. In the industry, we call these <strong>Microservices</strong>.</p><p>Imagine instead of Tony’s food truck, you walk into a massive food hall.</p><ul><li>There is a dedicated <strong>Pizza Station</strong>.</li><li>There is a dedicated <strong>Sushi Bar</strong>.</li><li>There is a dedicated <strong>Dessert Counter</strong>.</li></ul><p>Each station has its own chef, its own ingredients, its own oven, and — this is the important part — its own independent life.</p><p>If the Pizza Station’s oven explodes (metaphorically, I hope), the Sushi Bar doesn’t care. They keep rolling spicy tuna rolls. The customers might be sad they can’t get pizza, but they can still eat dinner.</p><p>In Netflix terms, they have over 700 of these “stations.” One service handles the “Search” bar. Another handles the “Thumbnail Images.” Another handles the “Billing.” If the “Recommendations” service (the one that says “Because you watched…”) crashes, you can still hit play on your movie. You might see some weird text where your recommendations should be, but the core business — watching videos — stays alive.</p><h3>Part 3: The Secret Sauce — The API Gateway</h3><p>Now, you might be thinking: “Wait a minute. If there are 700 different stations, how does the customer know where to go? Do I have to talk to 700 different people just to watch a movie?”</p><p>This is a great question. If I had to guess, this is where most people get confused about how the internet works.</p><p>Think about that food hall again. When you walk in, you don’t run around to every station yourself. Instead, there is a <strong>Host</strong> at the front door.</p><p>In tech, we call this the <strong>API Gateway</strong>.</p><p>The Gateway is like a super-smart traffic cop. When you click on the Netflix app, your phone sends one single request to the Gateway. It says: “Hey, I’m Sarah, and I want to see my home screen.”</p><p>The Gateway looks at that and says:</p><ol><li>“Okay, I’ll ask the <strong>Auth Service</strong> if Sarah is actually Sarah.”</li><li>“I’ll ask the <strong>Profile Service</strong> what her favorite icons are.”</li><li>“I’ll ask the <strong>History Service</strong> what she was watching yesterday.”</li><li>“I’ll ask the <strong>Video Service</strong> to get the movie links ready.”</li></ol><p>The Gateway does all of this <em>at the same time</em>. It collects all the answers, puts them in a nice little package, and sends it back to your phone. You, the user, never even knew there were four different teams working for you. You just saw your home screen pop up in half a second.</p><h3>Part 4: The Superpower of “Scaling” (Why it Saves Millions)</h3><p>This is the part that usually blows people’s minds. Let’s talk about money.</p><p>Remember my auction site? When 500 people showed up, I had to try and “scale” my site. Scaling just means making it stronger. But because it was a Monolith, the only way to make it stronger was to buy a way bigger, way more expensive server. I had to pay for a giant engine even though only the “Bidding” part of my code was struggling.</p><p>It’s like if Tony’s food truck got busy, and to fix it, Tony had to buy a second, identical food truck, hire a second Tony, and buy all the ingredients for sushi and lava cakes again — even if everyone only wanted burgers. It’s a huge waste of money.</p><p><strong>Microservices have a superpower called “Targeted Scaling.”</strong></p><p>Let’s look at Amazon on Black Friday. Millions of people are hitting the “Add to Cart” and “Checkout” buttons. But almost nobody is going into their “Account Settings” to change their home address or update their birthday.</p><p>Because Amazon uses microservices, they don’t have to scale the whole website. They can simply tell their cloud providers (like AWS): “Hey, give me 500 extra servers just for the <strong>Checkout Service</strong>. Keep the <strong>Profile Service</strong> on one tiny, cheap server.”</p><p>This saves them millions of dollars in electricity and server costs. They only pay for what is actually “on fire.” As a technical guy, I find this beautiful. It’s like a living organism that grows its muscles only where it needs them to win the fight.</p><h3>Part 5: The “Dark Side” of the Empire (It’s Not All Pizza and Sushi)</h3><p>I want to be honest with you. If I told you microservices were perfect, I’d be lying. And as your “one-on-one” guide here, I don’t want to lead you astray.</p><p>There is a reason small companies don’t start with 700 microservices.</p><h3>1. The “Telephone Game” Problem</h3><p>In a Monolith, the code is all in one room. If the “Login” code wants to talk to the “Database,” it just shouts across the room. It’s instant.</p><p>In Microservices, the services are in different “buildings.” They have to talk to each other over the network (the internet). This takes time. It’s like the “Telephone Game.” If Service A calls Service B, which calls Service C, which calls Service D… you suddenly have a delay. This is called <strong>Latency</strong>. If you aren’t careful, your app will feel slow and “laggy.”</p><h3>2. The Management Nightmare</h3><p>Remember Tony? He only had to manage himself. In the Microservices world, you have 700 chefs.</p><ul><li>Who is making sure the Sushi chef is using the same brand of rice as the Poke Bowl chef?</li><li>What happens if the Pizza chef updates his oven and now the “Host” (Gateway) doesn’t know how to talk to him anymore?</li><li>How do you find out which station is responsible for the fly in the soup?</li></ul><p>You need massive, complex tools to keep track of everything. You’ve probably heard names like <strong>Docker</strong> or <strong>Kubernetes</strong>. These are basically the “Manager” robots that make sure all the chefs are doing their jobs and that the kitchens stay clean. They are very hard to learn.</p><h3>3. The Cost of Being Big</h3><p>Building a food hall is 10 times more expensive than building a food truck. You need more people, more specialized tools, and more “middlemen.” If you only have 100 users, building microservices is like hiring a 50-person orchestra to play a song for one person in a living room. It’s overkill.</p><h3>Part 6: How to Think Like an Architect (The Decision Tree)</h3><p>So, if you’re building the next big app in your bedroom, what should you do? I’ve spent a lot of time thinking about this, and I’ve realized that most people move too fast.</p><p>Here is my “Earned Wisdom” on how to choose your path:</p><h3>The “Food Truck” Phase (The Monolith)</h3><p>If you have a small team (less than 10 people) and you’re still trying to figure out if people even <em>like</em> your app, <strong>stay in the food truck.</strong> Don’t worry about microservices yet. You need to be fast. You need to be able to change your whole menu in an afternoon. A monolith lets you do that. Most of the famous apps we use today — including Instagram and even Netflix — started as one big pile of code.</p><h3>The “Growing Pains” Phase</h3><p>Once you hit 10,000 or 50,000 users, things start to creak. Maybe your “Image Upload” feature is so slow that it’s making the “Login” page take forever. This is when you start “shaving” the monolith. You don’t blow it up. You just take the “Image Upload” part and move it into its own little kitchen. You give it its own chef. Now, your main truck is lighter and faster again.</p><h3>The “Empire” Phase (The Microservices)</h3><p>Once you pass 100,000 active users and your team grows to 50 or 100 engineers, you almost <em>have</em> to switch. At this point, you have too many “Tonys” trying to work in one food truck. They are bumping into each other, spilling things, and getting into fights. Microservices allow those 100 engineers to work in small groups of five. Each group “owns” a station. They can move fast, fix their own ovens, and stay out of each other’s way.</p><h3>Part 7: A Real-World Disaster (Learning from Facebook)</h3><p>Do you remember October 2021? Facebook, Instagram, and WhatsApp all went dark for about six hours. The whole world felt it. People couldn’t check their feeds, businesses couldn’t run ads, and I couldn’t send memes to my brother.</p><p>The reason that outage was so scary was that it was a “Monolith-style” failure in their networking. A single mistake in how their “Invisible City” talked to the rest of the world basically erased their address from the map.</p><p>Because their internal systems were so tightly connected, the engineers couldn’t even get into the building to fix the servers because their “Digital Keys” were also part of the system that was down!</p><p>This is the ultimate fear of every architect. Even if you have the best microservices in the world, you have to make sure the “Roads” between them are safe. It’s a reminder that no matter how smart we think we are, nature (and code) always finds a way to remind us of our complexity.</p><h3>Part 8: The “Human” Side of Code</h3><p>I know I’ve been talking about kitchens and cities, but I want to end on something a bit more personal.</p><p>Software architecture isn’t really about computers. It’s about <strong>people</strong>.</p><p>When we build a Monolith, we are saying, “I want everyone to work together on one thing.” That’s great for a small group of friends. It feels like a family.</p><p>When we build Microservices, we are saying, “I want everyone to have their own space and their own responsibility.” That’s how we build big things like cities or space programs.</p><p>Sometimes I miss the “Food Truck” days. I miss having all my code in one place where I could see it all. There was a warmth to it. But then I remember the feeling of my auction site crashing — the pit in my stomach, the frantic typing, the realization that I had let people down.</p><p>We build these “Invisible Cities” not because we like the complexity, but because we care about the person on the other end of the screen. We want your Friday night movie to work. We want your Black Friday gift to be bought. We want your message to your mom to go through.</p><h3>Summary: What Did We Learn?</h3><p>If you’ve made it this far, you’re now smarter than 90% of the people who talk about “The Cloud.” Here is the “Cheat Sheet” for your next dinner party:</p><ol><li><strong>Monoliths</strong> are like food trucks. Great for starting out, but they have a “Single Point of Failure.” If one part breaks, the whole thing dies.</li><li><strong>Microservices</strong> are like a food hall. Every feature (Pizza, Sushi, Dessert) is a separate station. If one breaks, the others keep serving.</li><li><strong>The API Gateway</strong> is the “Host” at the front door. It takes your one request and sends it to the right stations behind the scenes.</li><li><strong>Scaling</strong> is the superpower. You only have to buy more “ovens” for the parts of the app that are actually busy, which saves tons of money.</li><li><strong>Complexity</strong> is the price you pay. It’s harder to manage 700 kitchens than one truck, so you only do it when you’re big enough to need it.</li></ol><p>The next time you’re watching a show on Netflix and it works perfectly, take a second to think about the hundreds of “Invisible Chefs” working behind the scenes. They are all in their separate stations, making sure your experience is seamless.</p><p>It’s a bit of a miracle, isn’t it? Millions of lines of code, thousands of servers, and hundreds of teams, all dancing together so you can watch a show about a group of kids in the 80s fighting monsters.</p><p>So, I have to ask you: If you were building an app today, would you start with a tiny, reliable food truck, or would you try to build a whole city right away?</p><p>I’d love to hear your thoughts in the comments. Have you ever had an app crash on you at the worst possible moment? Let’s talk about it!</p><p><strong>Follow me at LinkedIn:</strong></p><p><a href="https://www.linkedin.com/in/subashpalvel/">https://www.linkedin.com/in/subashpalvel/</a></p><p><strong>Follow me at Medium:</strong></p><p><a href="https://subashpalvel.medium.com/">https://subashpalvel.medium.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e94afae78a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Your Code Thinks It’s 10 AM When It’s Actually 9:00: The $100 Million Time Zone Trap]]></title>
            <link>https://subashpalvel.medium.com/why-your-code-thinks-its-10-am-when-it-s-actually-9-00-the-100-million-time-zone-trap-5409d394ac44?source=rss-97c97eb410e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/5409d394ac44</guid>
            <category><![CDATA[palvel]]></category>
            <category><![CDATA[time]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[subash]]></category>
            <category><![CDATA[subash-palvel]]></category>
            <dc:creator><![CDATA[Subash Palvel]]></dc:creator>
            <pubDate>Thu, 02 Apr 2026 01:52:33 GMT</pubDate>
            <atom:updated>2026-04-02T01:52:33.706Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ll never forget the Monday morning my inbox turned into a digital graveyard. It was March in New York, the sun was shining, and I was feeling pretty good about the scheduling app I’d just launched. Then, at 9:01 AM, the messages started flooding in.</p><p>“Why did my 9:00 AM medication reminder just go off at 10:00?” “I missed my flight because your app didn’t wake me up.” “Your calendar says my meeting is at 2:00 PM, but everyone else is already in the Zoom room.”</p><p>I felt that cold, sinking sensation in my chest. I had tested the code. I had used the “industry standard” UTC (Coordinated Universal Time). I thought I was being a “pro” developer. But I had accidentally built a time machine that only moved in one direction: toward total chaos.</p><p>If you’ve ever felt like time is just a number on a screen, I’m here to tell you it’s actually a messy, political, and deeply human set of rules that can break your software in ways you never imagined. Let’s talk about why time is the final boss of programming.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*odPT0jhtd39cBS0PI0apfA.png" /></figure><h3>The Lie We Tell Ourselves About Clocks</h3><p>When we’re kids, we learn that a day is 24 hours. We learn that the sun rises, the sun sets, and the clock ticks forward at a steady pace. In the world of math, that’s true. In the world of physics, it’s mostly true. But in the world of humans? It’s a complete fabrication.</p><p>Think of time like a giant game of “Simon Says,” but Simon is actually hundreds of different governments around the world, and they all change the rules whenever they feel like it.</p><p>I used to think that “Time” and “The Clock” were the same thing. They aren’t. Time is a physical reality; the clock is just a story we agree to tell each other so we can show up to school on time. When we write code, we often forget that we’re trying to program a <em>story</em>, not just a physical constant.</p><h3>The Two Different “Whys” of Time</h3><p>Before we get into the “how-to,” we have to understand that not all timestamps are created equal. This was my first big mistake. I treated every “time” in my database the same way.</p><h3>1. Recording the Past (The “What Happened?” Moment)</h3><p>Imagine a user buys a digital sword in your game. Or a log entry shows that a server crashed. You need to know exactly when that happened in the history of the universe.</p><p>For this, we use <strong>UTC</strong>. Think of UTC as the “Universal Reference.” It’s the time at 0° longitude (Greenwich, England), and it never, ever changes for Daylight Saving Time. It’s like a giant, cosmic stopwatch that started ticking and hasn’t stopped.</p><p>If I record a purchase at 2:00 PM UTC, that moment is frozen in ice. It doesn’t matter if the user moves to Japan or if their local government decides to move the clocks forward by three hours for a festival. 2:00 PM UTC is a fixed point in the timeline.</p><h3>2. Scheduling the Future (The “Intention” Moment)</h3><p>This is where I messed up. When a user says, “Remind me to take my vitamins at 9:00 AM every day,” they aren’t talking about a fixed point in the cosmic timeline. They are talking about a <strong>local human intention.</strong></p><p>If I convert that 9:00 AM to UTC and save it, I’m essentially taking a photograph of the current rules. But rules change! If the clocks “Spring Forward,” that 9:00 AM local time is now a different UTC time than it was yesterday.</p><p>If you store the “frozen” UTC, the user’s phone will ring at 10:00 AM local time. To the user, you’ve failed. To the computer, you followed the math perfectly. This is the gap where bugs live.</p><h3>Offsets vs. Time Zones: The “Snapshot” vs. The “Rulebook”</h3><p>I used to use these terms interchangeably. I’d say, “The time zone is UTC minus 5.”</p><p><strong>I was wrong.</strong> An <strong>Offset</strong> (like UTC-5) is just a snapshot. It’s like taking a picture of a person standing on a specific street corner. It tells you where they are <em>right now</em>, but it doesn’t tell you where they are going or what the traffic laws are.</p><p>A <strong>Time Zone</strong> (like America/New_York) is the whole rulebook. It says: &quot;On this street corner, from November to March, you stay at UTC-5. But in March, you jump to UTC-4. Oh, and by the way, in 1942, the rules were totally different because of the war.&quot;</p><p>When you use a Time Zone Identifier, your code isn’t just looking at a number; it’s looking at a history book. It knows that governments change their minds. It knows that Lebanon once changed their DST start date with only two days’ notice. (Yes, that actually happened, and it broke half the internet in that region!)</p><h3>The “Ghost Hours” of Spring and Fall</h3><p>Let’s get weird for a second. Have you ever realized that some hours simply don’t exist?</p><h3>The Hour That Never Was (Spring Forward)</h3><p>Every March in the US, we “Spring Forward.” At 2:00 AM, the clock magically jumps to 3:00 AM.</p><p>Think about that. The time between 2:00:00 and 2:59:59 <strong>never happened.</strong> If your app has a task scheduled for 2:30 AM on that specific Sunday, what does your code do?</p><ul><li>Does it crash because the time is “invalid”?</li><li>Does it skip it and wait until next year?</li><li>Does it run it at 3:00 AM?</li></ul><p>If you don’t plan for the “Ghost Hour,” your code will make a decision for you — and usually, it’s the wrong one.</p><h3>The Hour That Happens Twice (Fall Back)</h3><p>In November, we “Fall Back.” At 2:00 AM, the clock resets to 1:00 AM.</p><p>This is even spookier. On that night, there are <strong>two</strong> different “1:30 AMs.” One happens, then 30 minutes later, it’s 1:30 AM again. If your code is set to “Send email at 1:30 AM,” you might accidentally spam your users twice. Or, if you’re calculating the duration of a shift, a worker who started at midnight and ended at 3:00 AM actually worked four hours, not three.</p><p>I once saw a system that charged people for parking based on the clock. During “Fall Back,” people were getting charged negative money because the exit time was “earlier” than the entry time. Talk about a costly bug!</p><h3>Why “24 Hours” is Not the Same as “One Day”</h3><p>This is a lesson I learned the hard way while building a streak-tracker for a fitness app.</p><p>I wrote code that said: NextReminder = CurrentReminder + 24 hours.</p><p>It sounds logical, right? A day is 24 hours. Except on DST transition days.</p><ul><li>On “Spring Forward” Sunday, a day is only <strong>23 hours long.</strong></li><li>On “Fall Back” Sunday, a day is <strong>25 hours long.</strong></li></ul><p>If you add exactly 24 hours to a timestamp, your user’s reminder will slowly drift. Over time, “same time tomorrow” becomes “an hour later than tomorrow.”</p><p>The solution? You have to use <strong>Calendar Arithmetic</strong>. You tell the computer “Add 1 Day,” not “Add 24 Hours.” This tells the computer to look at the “Rulebook” (the Time Zone ID) and figure out if that specific day is a weird one.</p><h3>How to Build a Time-Proof System (The Step-by-Step)</h3><p>If I were sitting next to you right now, looking at your screen, here is exactly how I’d tell you to set up your database and your logic so you can sleep soundly during the next clock change.</p><h3>Step 1: The Database Strategy</h3><ul><li><strong>For Logs/Past Events:</strong> Store one column: created_at (Timestamp in UTC).</li><li><strong>For Future Appointments:</strong> Store two columns: local_start_time (The time the user picked, like 09:00:00) and timezone_id (The string America/Los_Angeles).</li></ul><h3>Step 2: Use a “Heavy Duty” Library</h3><p>Don’t try to use the built-in Date objects in most languages for complex math. They are often too simple. In JavaScript, I use <strong>Luxon</strong> or <strong>date-fns</strong>. In Python, I use <strong>pytz</strong> or the built-in zoneinfo.</p><p>These libraries are connected to the <strong>IANA Time Zone Database</strong>. This is a global group of volunteers who track every single time zone change on Earth. When a country in South America decides to stop using DST, these volunteers update the database, your library gets an update, and your code stays smart.</p><h3>Step 3: Test the “Edge of the World”</h3><p>You wouldn’t ship a car without testing the brakes, right? Don’t ship time-sensitive code without “Time Travel” testing.</p><p>I write tests where I “mock” the system clock. I tell my computer: “Pretend it is 1:59 AM on March 10th.” Then I run my scheduling logic to see if it survives the jump to 3:00 AM. If it passes those two days a year, it will pass the other 363.</p><h3>A Personal Lesson in Humility</h3><p>The hardest part of being a developer isn’t learning the syntax; it’s learning that the world is much more complicated than our logic. We love clean numbers and predictable patterns. But humans are messy. We change our minds, our laws, and our clocks.</p><p>I used to get frustrated by these bugs. I’d think, “Why can’t the world just stay on UTC?” But that’s not how people live. People live by the sun and their local community. As a “Technical Subject Matter Expert” (which is just a fancy way of saying I’ve broken a lot of things and eventually learned why), I’ve realized my job isn’t to make the world fit my code. It’s to make my code fit the world.</p><h3>Let’s Recap (The “Too Long; Didn’t Read” for my 8th-grade friends)</h3><ol><li><strong>UTC is for History:</strong> If it already happened, save it in UTC. It’s the “Universal Truth.”</li><li><strong>Time Zones are for the Future:</strong> If you want something to happen at a specific human time (like 8:00 AM), save the local time and the name of the city/zone.</li><li><strong>Offsets are Snapshots:</strong> “UTC-5” is just a moment in time. “America/New_York” is the whole story. Store the story.</li><li><strong>Days aren’t always 24 hours:</strong> Some days have 23 hours, some have 25. Always add “1 Day,” not “24 Hours,” if you want to keep a schedule consistent.</li><li><strong>Don’t be a Hero:</strong> Use a library. The people who maintain the IANA database are the real heroes. Let them handle the weird government rules for you.</li></ol><h3>Wrapping Up</h3><p>Time is a weird, wibbly-wobbly thing (as a certain Time Lord once said). It’s one of the few places in programming where “perfect logic” will actually cause more bugs than “human understanding.”</p><p>The next time you’re setting an alarm on your phone or scheduling a post for social media, take a second to think about the invisible “Rulebook” running in the background. It’s a miracle it works at all, isn’t it?</p><p>I’m curious — have you ever had a “Time Zone Horror Story”? Maybe an alarm that didn’t go off or a flight you almost missed because your phone got confused? Drop a comment below. I’d love to hear that I’m not the only one who has been tricked by a clock!</p><p><strong>Follow me at LinkedIn:</strong></p><p><a href="https://www.linkedin.com/in/subashpalvel/">https://www.linkedin.com/in/subashpalvel/</a></p><p><strong>Follow me at Medium:</strong></p><p><a href="https://subashpalvel.medium.com/">https://subashpalvel.medium.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5409d394ac44" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>