<?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 Tanay Gupta on Medium]]></title>
        <description><![CDATA[Stories by Tanay Gupta on Medium]]></description>
        <link>https://medium.com/@tanx4?source=rss-1c4727a2c9f9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qPPySsVsCqeo1MuCgDVr4w.jpeg</url>
            <title>Stories by Tanay Gupta on Medium</title>
            <link>https://medium.com/@tanx4?source=rss-1c4727a2c9f9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 01:12:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tanx4/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[I Thought My Wi-Fi Was Slow. It Was My Code.]]></title>
            <link>https://medium.com/@tanx4/i-thought-my-wi-fi-was-slow-it-was-my-code-70581c5aff05?source=rss-1c4727a2c9f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/70581c5aff05</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[performance]]></category>
            <dc:creator><![CDATA[Tanay Gupta]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 19:38:56 GMT</pubDate>
            <atom:updated>2026-11-25T19:38:56.483Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A case study on building a reliable large-file downloader for Android: measuring the real bottleneck, buffering, recovery, integrity checks, and the limits of parallel downloads.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*6c_ywe6AdegUlq5q.gif" /><figcaption><em>Me, watching a 100 MB progress bar.</em></figcaption></figure><p>Some bugs crash loudly. This one just made me wait.</p><p>I was building a downloader for large files on Android. The requirements sounded simple. Fetch a file of a few hundred megabytes to several gigabytes from a CDN, survive bad networks, and never accept a file unless its SHA-256 matches.</p><p>My test file was about 100 MB. The tablet was a few feet from a 5 GHz router. I tapped download, picked up my tea, and watched the progress bar.</p><p>It took <strong>two and a half minutes</strong>.</p><p>My first thought was the one most of us have. It’s the network. So I ran a browser speed test against the same CDN. It reported a connection several times faster than what my downloader was getting.</p><p>Same Wi-Fi. Same CDN. Very different speeds.</p><p>That gap is where this story starts.</p><h3>Step one: stop guessing and start timing</h3><p>I had a theory but no evidence. Before changing anything, I added timers around every stage of the download loop. I wanted to know how long we spent waiting for the network, how long we spent writing to disk, and how many progress updates we sent to the UI and to Android.</p><p>Then I downloaded the same 105 MB file again.</p><ul><li><strong>What I measured:</strong> Total transfer time<br><strong>Result:</strong> 151.4 s</li><li><strong>What I measured:</strong> Average speed<br><strong>Result:</strong> 0.697 MB/s (about 5.6 Mbps)</li><li><strong>What I measured:</strong> Time waiting for network<br><strong>Result:</strong> 77.9 s</li><li><strong>What I measured:</strong> Time spent writing to disk<br><strong>Result:</strong> 73.3 s</li><li><strong>What I measured:</strong> Number of disk writes<br><strong>Result:</strong> 19,325</li><li><strong>What I measured:</strong> Progress updates sent to Android<br><strong>Result:</strong> 19,325</li></ul><p>Almost half the time went into writing. Not downloading, writing. The tablet’s storage can handle far more than 1 MB/s, so storage speed wasn’t the problem.</p><p>The write count explained it. One file had caused 19,325 separate writes, averaging about 5 KB each.</p><h3>The real bottleneck: one small bag at a time</h3><p>For every chunk that arrived from the network, my loop did this:</p><ol><li>Receive about 5 KB.</li><li>Stop and write it to disk.</li><li>Wait for the write to finish.</li><li>Notify the UI that progress changed.</li><li>Notify Android’s foreground service that progress changed.</li><li>Only then ask the network for the next chunk.</li></ol><p>It did that nineteen thousand times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*uJkF4lhbob99OSEs.gif" /><figcaption><em>Me, doing the math on 19,325 writes for one file</em></figcaption></figure><p>It’s like unloading a full car one small bag at a time and updating your shopping list after every trip. The car isn’t the problem. The process is.</p><p>The network was being slowed down by this too. While the code was busy writing and updating progress, it wasn’t reading from the socket. So part of the “network wait” was really time my own code had added.</p><p>Each progress update also triggered a UI rebuild and a cross-process call into Android. Android’s notification service already throttled itself to about one visible update per second, so roughly 99% of those calls were thrown away as soon as they arrived.</p><p><strong>Under the hood:</strong> the stream loop awaited file.writeFrom(chunk) before calling iterator.moveNext(). Every chunk also fired onProgress, a state update, a MethodChannel call, and an Android startService() Binder IPC.</p><h3>The fix: two trays instead of one bag</h3><p>The fix didn’t need anything clever. It came down to two ideas.</p><p><strong>Batch the writes.</strong> Collect incoming chunks into a 512 KB buffer and write only when it fills up.</p><p><strong>Let reading and writing overlap.</strong> Use two buffers. While one is being written to disk, the other keeps filling from the network.</p><p>Double buffering works like a kitchen with two trays. While one goes to the table, the next is already being filled.</p><p>If both buffers are full, intake pauses. That keeps memory bounded at about 1 MB no matter how large the file is. Writes stay in order, and progress only counts bytes that have actually been saved.</p><p>Then I cut down the progress noise. The UI now updates at most every 150 ms or every 512 KB, whichever comes first. Android notification updates happen at most once a second or when the percentage changes. A user can’t see 19,000 updates anyway, and five or six a second looks just as smooth.</p><p>I also reused one HTTP client across downloads instead of creating a new one each time.</p><h3>The result</h3><p>Same tablet, same Wi-Fi, same 105 MB file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*480yFc2-Cxge0uWeSJf2gQ.png" /><figcaption><em>Buffering and throttling improved throughput and removed thousands of small operations from the hot path.</em></figcaption></figure><p><em>Buffering and throttling improved throughput and removed thousands of small operations from the hot path.</em></p><ul><li><strong>Column 1:</strong> Average speed<br><strong>Before:</strong> 0.697 MB/s<br><strong>After:</strong> 2.046 MB/s</li><li><strong>Column 1:</strong> Transfer time<br><strong>Before:</strong> 151.4 s<br><strong>After:</strong> 51.5 s</li><li><strong>Column 1:</strong> Disk writes<br><strong>Before:</strong> 19,325<br><strong>After:</strong> 202</li><li><strong>Column 1:</strong> UI state updates<br><strong>Before:</strong> 19,326<br><strong>After:</strong> 205</li><li><strong>Column 1:</strong> Android progress calls<br><strong>Before:</strong> 19,325<br><strong>After:</strong> 102</li></ul><p>That’s <strong>2.94 times faster</strong>. Two and a half minutes became under a minute, with no new libraries and no parallel connections. The downloader just stopped getting in its own way.</p><p>One note on the numbers: total disk write time dropped to about 0.7 seconds. That’s a cumulative counter, and those writes now happen while the network is still reading, so they don’t add to the total transfer time.</p><h3>Fast is useless if the file is wrong</h3><p>Speed was the satisfying part, but a fast file with one corrupted byte is worse than a slow one. It installs without complaint and then fails in strange ways later.</p><p>So the most important design rule was this: <strong>a file is never accepted just because the download finished.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*5LLlTahvbtgVyoKR.gif" /><figcaption><em>Every file has a known fingerprint, its SHA-256. Only a file whose fingerprint matches is accepted.</em></figcaption></figure><p>The flow is deliberately strict:</p><ol><li>Download into a temporary .part file.</li><li>When the byte count is complete, calculate the SHA-256 of the whole file.</li><li>Only if it matches the expected value, rename the file, write a .verified marker, and record it in the index.</li></ol><p>Having the right number of bytes is necessary, but it doesn’t prove the bytes are correct. The hash check is what decides.</p><p>I also moved hashing off the UI isolate. On this tablet, hashing 105 MB took about 2.2 seconds. That’s fine for a small file, but for a multi-gigabyte file it would freeze the screen for a long time.</p><h3>Designing for failure</h3><p>Mobile networks are unreliable. Wi-Fi drops, apps get killed, and users walk out of range. While probing the CDN, I found a less obvious problem too.</p><p><strong>The download link expires.</strong></p><p>The origin redirects to a signed CDN URL, and in my tests that URL was valid for about one hour. At roughly 2 MB/s, a 4 GB file takes over half an hour. On a slower connection, or with a pause in the middle, a download can easily outlive its own link.</p><p>So the downloader recovers in a few specific ways. It retries temporary failures such as timeouts, dropped connections and 5xx responses up to three times, with increasing delays. It never retries cancellations or permanent errors, because retrying those just wastes time. If the signed link expires, it goes back to the original pinned URL, gets a fresh link, and checks that it still points to exactly the same file. It also asks for notification permission only when a download actually starts, and keeps downloading if the user says no.</p><p>This reliability work passed 127 focused tests. I haven’t reproduced every real-world failure on a physical device yet.</p><h3>The temptation: add more connections</h3><p>After buffering, the numbers showed something new. <strong>99.7% of transfer time was now spent waiting for the network.</strong> The code was finally out of the way.</p><p>The browser test was still faster, though, and browsers often use several connections. So the next step looked obvious: split the file into ranges and download them in parallel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ddjVi-DOqhK8_33bcZyrZw.png" /></figure><p><em>Two workers fetch different ranges. A single writer puts every block in the right place.</em></p><p>Parallel downloading isn’t free. It brings three new problems.</p><p><strong>Someone has to put the pieces in order.</strong> Two workers writing to the same file at once is how files get corrupted. So exactly one component, a serialized writer, is allowed to touch the file.</p><p><strong>File size stops meaning progress.</strong> If a later range finishes first, the file can reach its full size while earlier bytes are still missing. Think of a book with the right page count but pages 3 to 5 blank. So a small sidecar file records exactly which ranges have been safely written.</p><p><strong>The CDN doesn’t protect you.</strong> In testing, the CDN ignored the HTTP headers meant to guarantee that every range comes from the same version of a file. So the downloader checks file identity on every response itself.</p><p>The design uses 16 MB work units. It starts with two workers and allows up to four only for files of 256 MB or more. It measures as it goes, and if extra workers don’t help, it falls back to fewer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iFe3oYjAyvs7Ya4X236pMg.png" /></figure><p><em>Both strategies end at the same place: validation, safe writes, a full hash check, and only then installation.</em></p><h3>The bug that only appeared on a real device</h3><p>All the tests passed. I installed the build on the tablet, started a download, and got this:</p><pre>Could not write the model file: An async operation is currently pending</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*8lsAlBbb3DKYeMfC.gif" /><figcaption><em>All tests green. Real device on fire.</em></figcaption></figure><p>The writer queued every write carefully, but a flush could still run outside that queue and collide with another file operation. On top of that, an old append-mode code path wasn’t safe for writing at specific positions in the file.</p><p>The fix was one strict rule: <strong>one component owns every file operation.</strong> Writes, flushes and close all go through the same queue. On Android, positioned writes now use pwrite and fsync directly.</p><p>After that, the same file downloaded cleanly on the device, with the correct size and the correct hash every time. Concurrency bugs often hide in the gap between passing tests and a real device, and this one did.</p><h3>The honest benchmark</h3><p>So was parallel actually faster?</p><p>I alternated the two modes on the same tablet with the same 144.8 MB file, so neither one got a lucky network moment.</p><ul><li><strong>Run:</strong> 1<br><strong>Mode:</strong> Single stream<br><strong>Speed:</strong> 1.923 MB/s<br><strong>Time:</strong> 75.3 s</li><li><strong>Run:</strong> 2<br><strong>Mode:</strong> Parallel<br><strong>Speed:</strong> 2.013 MB/s<br><strong>Time:</strong> 71.9 s</li><li><strong>Run:</strong> 3<br><strong>Mode:</strong> Single stream<br><strong>Speed:</strong> 1.942 MB/s<br><strong>Time:</strong> 74.6 s</li><li><strong>Run:</strong> 4<br><strong>Mode:</strong> Parallel<br><strong>Speed:</strong> 1.950 MB/s<br><strong>Time:</strong> 74.3 s</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZVmT5XmZXl4lvUiNjN0a9A.png" /></figure><p><em>The parallelism was real. The gain was small.</em></p><p><strong>Parallel was 2.5% faster on average.</strong> After all the scheduling, the interval tracking and the concurrency bug, it gained two and a half percent.</p><p>The parallel runs really were parallel. Two streams were active together for about 11 seconds in each run. After the first measurement window, though, the controller saw that two connections weren’t beating one, so it dropped back to a single stream for the rest of the download. That’s exactly what it was designed to do.</p><p>This test doesn’t tell me whether parallel helps on larger files, since this one was too small to try three or four workers, or on other networks. That question is still open.</p><p>The earlier 2.046 MB/s result and this 1.93 MB/s average came from different files, so they shouldn’t be read as a regression.</p><h3>What I still don’t know</h3><p>The downloader now reaches about 16 Mbps on this tablet. The browser speed test showed about 35.7 Mbps, and that gap is still there.</p><p>It could come from how browsers manage connections, CDN routing, per-connection limits on the network, or ordinary variation. I didn’t run a browser test right before every downloader run, so I can’t say which. I’d rather leave it as an open question than guess.</p><h3>What I’d tell my past self</h3><p><strong>Measure the whole path, not just the network.</strong> The speed test said the internet was fine. Only timing each stage showed where the time actually went.</p><p><strong>Fix what you can prove.</strong> Buffering and throttling gave nearly 3x. Adding connections first would have multiplied the waste.</p><p><strong>File size isn’t progress.</strong> Once writes can happen out of order, track exactly what has been saved and always verify the whole file at the end.</p><p><strong>Make complexity earn its place.</strong> The parallel path works and it’s correct, but on this file and this network it earned 2.5%. A solid single-stream path with a safe fallback isn’t a compromise. It’s the right default.</p><p>The best downloader isn’t the one with the most connections. It’s the one that moves bytes without tripping over itself, knows exactly what it has saved, recovers when things break, and refuses to accept anything it can’t verify.</p><p>And it all started with me blaming the Wi-Fi.</p><p><strong>Have you ever been sure the problem was the network and then found it in your own code?</strong> I’d like to hear about it in the comments.</p><p><em>Measurement note: all results come from one Android 16 tablet on one Wi-Fi network. Speeds are in decimal MB/s. The 105 MB and 144.8 MB tests used different files. The browser speed reference was not taken at the same time as the final runs. A separate force-stop test showed the download restored as paused and cleaned up correctly on cancel, but it did not prove that an interrupted download resumed to completion.</em></p><p><em>Charts and diagrams are from my own measurements. GIFs via GIPHY</em></p><p>#Android #Flutter #SystemDesign #Performance #SoftwareEngineering</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70581c5aff05" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From MiniZinc to IBM ILOG CPLEX: What We Learned Rebuilding a Client’s Model in Python]]></title>
            <link>https://medium.com/@tanx4/from-minizinc-to-ibm-ilog-cplex-what-we-learned-rebuilding-a-clients-model-in-python-8e757bf97caa?source=rss-1c4727a2c9f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e757bf97caa</guid>
            <category><![CDATA[cplex]]></category>
            <category><![CDATA[minizinc]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[optimization]]></category>
            <dc:creator><![CDATA[Tanay Gupta]]></dc:creator>
            <pubDate>Fri, 03 Apr 2026 15:23:36 GMT</pubDate>
            <atom:updated>2026-04-03T15:23:36.702Z</atom:updated>
            <content:encoded><![CDATA[<p>The conversation started with a simple claim. The client said their MiniZinc model was too slow. They wanted something faster.</p><p>Our job at IBM was to run a POC and show what using Python with CPLEX could do differently. It sounded straightforward. Take the same model. Rebuild it. Run it faster. That’s not what happened.</p><h3>The Comfortable Phase</h3><p>The client’s model already looked solid. The math checked out. The constraints were clean. The objective made sense. Everything was written in a clear declarative style. At first glance, nothing felt wrong.</p><p>MiniZinc makes models look simple. You describe what you want, not how to compute it. That abstraction gives you clarity. It also hides a lot. We thought it was a clean starting point. We were wrong.</p><h3>The Break</h3><p>As part of the POC, we started pulling the model into a more production friendly setup. That’s when things started breaking. Not performance. Not yet. Understanding.</p><p>Debugging in MiniZinc was painful. You can’t inspect intermediate values easily. You can’t step through execution. You can’t ask the solver why something happened. It either works or it doesn’t. And when it doesn’t, you’re guessing.</p><p>We also needed structured input. So we pulled the data out into Excel. Clean rows and columns. Then we built everything around it. Schema. db_manager. data_manager. Setup scripts. A scenario generator.</p><p>Now the model was part of a system. And for the first time, we had control.</p><h3>The Decision</h3><p>We rebuilt the model in Python using IBM ILOG CPLEX. The goal was clear. Better performance. Better control. Better integration.</p><p>We also had IBM Bob helping us as our AI coding sidekick, which made the transition faster than expected. It was supposed to behave exactly the same. Same model. Same logic. Just faster.</p><p>That assumption didn’t hold.</p><h3>The Reality Check</h3><p>This wasn’t translation. It was reconstruction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*ckCkVtsxA-2leJpR7WR8nQ.gif" /></figure><p>MiniZinc is declarative. Python with CPLEX is imperative. That difference hits hard. In MiniZinc, things feel automatic. In Python, nothing is. You define variables. You loop through data. You build every constraint manually.</p><p>Nothing is implicit anymore. You gain control. But you also take full responsibility.</p><h3>The Conflict</h3><p>Then came the real problem. Same model. Same inputs. Different outputs.</p><p>MiniZinc gave one result. Python gave another.</p><p>We saw values around 0.88 in one system. Around 0.7 in the other.<br> That gap shouldn’t exist.</p><p>At first, we thought it was performance. Then data. Then solver settings. We kept chasing the wrong problem. Because everything looked correct. The constraints were there. The objective was there. The data matched.</p><p>Still wrong. Nothing looked broken. And that was the problem.</p><h3>The Reveal</h3><p>What went wrong wasn’t one big issue. It was a series of small ones.</p><p>Some constraints were missing. Not removed. Just never recreated. Some relationships that were implicit in MiniZinc had to be explicitly defined. We missed a few. Indexing shifted from one based to zero based. That alone introduced silent inconsistencies.</p><p>Scaling behaved slightly differently. A division here. A normalization there. Small changes with big impact. Some constraints were logically correct but structurally different. And in optimization, structure matters.</p><p>MiniZinc had been hiding complexity. Python exposed everything.</p><h3>The Lessons</h3><p>Here’s what this taught us. Performance was not the first problem. Correctness was.</p><p>If you can’t break your objective into pieces, you don’t understand it. Same model does not mean same implementation. Abstraction hides mistakes until it doesn’t. Control gives you power. It also gives you bugs.</p><p>A working model is not the same as a correct model.</p><h3>The Ending</h3><p>In the end, we aligned the results. Not by rewriting everything again, but by understanding every piece. Only after that could we even talk about performance.</p><p>The POC did what it was supposed to do. It showed that Python with CPLEX gives you the control and performance needed for real systems. But it also showed something more important.</p><p>MiniZinc helped us think. Python forced us to understand. We didn’t just rebuild the model. We uncovered it.</p><p>And once you see everything clearly, you realize something uncomfortable.</p><p>Speed doesn’t matter<br>if you don’t trust the result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c4R8mmgr41Mky4HahAI5kw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e757bf97caa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How AI Is Reshaping Platform Engineering: From DevOps to Infrastructure Products]]></title>
            <link>https://medium.com/@tanx4/how-ai-is-reshaping-platform-engineering-from-devops-to-infrastructure-products-5078264666a6?source=rss-1c4727a2c9f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/5078264666a6</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Tanay Gupta]]></dc:creator>
            <pubDate>Tue, 10 Feb 2026 11:36:31 GMT</pubDate>
            <atom:updated>2026-02-10T14:04:11.420Z</atom:updated>
            <content:encoded><![CDATA[<h4>Stop writing YAML. Start designing products.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iXm1brOde2H-2u6bqxqoPw.png" /></figure><p>Remember 2021?</p><p>You were a wizard.</p><p>You knew how to write a perfect multi stage Dockerfile. You knew the exact syntax for a Kubernetes Service account. You were the gatekeeper of the infrastructure.</p><p>Fast forward to today.</p><p>I open an AI editor and type: <em>“Generate a high availability EKS cluster with Prometheus stack and an external DNS.”</em></p><p>It spits out the cluster in ten seconds, complete with comments.</p><p>Two years ago, that request meant VPC design, subnet calculations, IAM roles, OIDC provider setup, Prometheus configuration, and DNS permissions.</p><p>As a platform engineer working in a large enterprise environment, I am already seeing this shift play out.</p><blockquote><em>If an AI can generate pipelines, infrastructure code, and Helm charts, what exactly is your job?</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a-5p2PTOfa7ww-4B1tpayA.png" /></figure><h3>The Reality Check</h3><p>Let’s look at a standard interaction to see how fast the ground is moving.</p><p><strong>The Old Way</strong></p><p><strong>Developer:</strong> “I need a Redis instance for my microservice.” <strong>You:</strong> “Okay, fill out a ticket. I need to write the Terraform module, update the state file, and run the apply. Give me two days.”</p><p><strong>The AI Way</strong></p><p><strong>Developer:</strong> “Computer, provision a Redis instance for this repo.” <strong>AI Agent:</strong> “Done. Here are your credentials. I also updated the security group.”</p><p>Do you see the problem?</p><p>In the first scenario, you are the bottleneck. In the second, you are invisible.</p><h3>The Commoditization Problem</h3><p>This is the uncomfortable part.</p><p>If your primary value is remembering syntax, you are in trouble.</p><p>AI will eliminate the need for copy paste YAML engineering. It will remove the need for manual pipeline wiring. It will end ticket driven administration.</p><p>The market does not pay premium salaries for syntax recall.</p><blockquote><em>The engineers who survive this shift will not be the fastest at writing YAML. They will be the ones who design the systems that YAML runs inside.</em></blockquote><p>This is not a doom and gloom prediction. It is a market correction.</p><p>We are moving from <strong>Automating Tasks</strong> to <strong>Orchestrating Intelligence</strong>.</p><p>Automation reduced toil. Intelligence changes responsibility.</p><h3>The Trap of “It Works”</h3><p>Let me give you a concrete example of why humans are still required.</p><p>You ask an AI to generate a Terraform module for an S3 bucket. It does it perfectly. The syntax is valid. The apply works.</p><p>But the AI optimized for “making it work.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*ojas8JPjsN6AF8vh2_GPug.png" /></figure><p>It opened the security group to the world because that was the easiest path to connectivity. It selected a standard storage class instead of intelligent tiering. It didn’t tag the resource with a cost center.</p><p><strong>The result:</strong> You have a working bucket that is insecure and will blow up your cloud bill in three months.</p><p>An AI doesn’t pay the AWS bill. You do.</p><p>This is where your role shifts.</p><p><strong>You are now a Guardrail Architect.</strong></p><p>Your job is no longer writing the bucket configuration. Your job is writing the policy engine that catches the AI when it tries to deploy that bucket.</p><blockquote><em>You don’t build the road anymore. You build the crash barriers.</em></blockquote><h3>Platform as a Product (For Real This Time)</h3><p>We have said “Platform as a Product” for years. We rarely meant it.</p><p>Usually, a “platform” was just a Confluence doc, a Jenkins server, and some tribal knowledge shared on Slack.</p><p>That is not a product. That is a chore.</p><p>Now, the bar is higher. If developers can get infrastructure from an AI assistant, why would they use your clunky internal tools?</p><p>You have to build something better than raw AI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*06h1iAWKqR8iCnWNbYVkMQ.png" /></figure><p><strong>A Bad Platform:</strong> A library of Terraform scripts that developers have to clone and modify manually.</p><p><strong>A Good Platform:</strong> An internal portal with pre-approved service templates, automatic cost tagging, and instant observability dashboards.</p><p>You need to design the abstractions. The user experience. The golden paths.</p><p>If no one uses your platform, it does not matter how clean your code is.</p><h3>The Skillset Pivot</h3><p>I want you to look at your resume.</p><p>If your resume describes tasks, you are replaceable. <em>“Proficient in writing Helm Charts.”</em> <em>“Expert in configuring Nginx.”</em></p><p>If it describes systems you designed and outcomes you influenced, you are defensible.</p><p>Now look at what the market is actually asking for.</p><p><strong>Systems Thinking.</strong> <strong>Cost Optimization Engineering.</strong> <strong>Governance and Policy as Code.</strong> <strong>Multi Cloud Architecture.</strong></p><p>One focuses on <strong>how</strong> to do things. The other focuses on <strong>why</strong> we do things.</p><h3>Final Thought</h3><p>When cloud computing first appeared, sysadmins thought they were dead. They weren’t. They just stopped racking servers and started writing code.</p><p>The same thing is happening now.</p><p>You are moving from writing configuration to designing systems.</p><p>AI is not replacing platform engineers. It is exposing who was only automating and who was truly engineering.</p><p>The difference will not be who can write YAML faster.</p><p>It will be who designs the system that decides which YAML is allowed to exist.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5078264666a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Terraform for Absolute Beginners: Your First 10 Minutes (Without Crying)]]></title>
            <link>https://medium.com/@tanx4/terraform-for-absolute-beginners-your-first-10-minutes-without-crying-7a4aba40cc3d?source=rss-1c4727a2c9f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a4aba40cc3d</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[infrastructure-as-code]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[terraform]]></category>
            <dc:creator><![CDATA[Tanay Gupta]]></dc:creator>
            <pubDate>Wed, 04 Feb 2026 21:28:40 GMT</pubDate>
            <atom:updated>2026-02-04T21:28:40.594Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve ever searched “Terraform tutorial,” you’ve probably seen a guide that starts like this: <em>&gt; “Let’s spin up an EC2 instance on AWS.”</em></p><p>If you’re a beginner, your brain immediately panics:</p><ul><li><em>Wait… what is EC2?</em></li><li><em>What is a VPC?</em></li><li><em>Why is AWS asking for my credit card just to learn a “Hello World”?</em></li></ul><p>Suddenly, you’re not learning Terraform anymore. You’re learning stress.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*mpLL8NZWigPqH9yJTBFirw.gif" /></figure><p>So, let’s do this properly. <strong>No AWS. No cloud bills. No accidental production outages.</strong> Just a simple first step to understand what Terraform actually <em>does</em>.</p><h3>What Terraform Really Is</h3><p>Terraform is basically a tool that lets you tell your computer: <strong>“Hey, I want this infrastructure.”</strong></p><p>And Terraform replies: <strong>“Cool. I’ll create it. I’ll track it. And if you mess up, I’ll help you clean it up.”</strong></p><p>Think of it as infrastructure automation with commitment issues solved.</p><h3>Your First Terraform Resource (The Safe Version)</h3><p>Most tutorials start with servers. We’re not doing that. We’re starting with something much less dangerous: <strong>A text file.</strong></p><p>Yes, Terraform can create a simple local file. This is the perfect beginner example because the worst thing that can happen is you accidentally create a text file. Tragic, right?</p><blockquote><strong><em>Note:</em></strong><em> You need Terraform installed to follow along.</em></blockquote><blockquote><em>If you don’t have it yet, </em><a href="https://developer.hashicorp.com/terraform/install"><em>grab the official installer here</em></a><em>. It takes about 2 minutes. Come back when you’ve verified it by typing </em><em>terraform -version in your terminal. I’ll wait.</em></blockquote><h3>Step 1: Create a Project Folder</h3><p>Open your terminal and create a safe space for your code:</p><pre>mkdir terraform-beginner<br>cd terraform-beginner</pre><p>Congratulations. You have officially started an infrastructure project. Even if it’s currently just an empty folder.</p><h3>Step 2: Create Your First Terraform File</h3><p>Create a file named main.tf.</p><p>Terraform loves files ending in .tf. It’s the tool&#39;s comfort zone.</p><h3>Step 3: Write Your First Terraform Code</h3><p>Open main.tf in your text editor and paste this code:</p><pre>resource &quot;local_file&quot; &quot;example&quot; {<br>  filename = &quot;hello.txt&quot;<br>  content  = &quot;Hello Terraform. This is my first resource.&quot;<br>}</pre><p><strong>Here is what that syntax actually means:</strong></p><ul><li><strong>resource</strong>: Tells Terraform we want it to manage a piece of infrastructure.</li><li><strong>local_file</strong>: Specifies <em>what kind</em> of thing we are making (in this case, a file on your computer).</li><li><strong>example</strong>: This is just an internal name for Terraform to use. You could call it &quot;pizza&quot; and Terraform wouldn&#39;t care.</li><li><strong>filename &amp; </strong><strong>content</strong>: The actual configuration arguments.</li></ul><p>Simple. No cloud. No servers. No fear.</p><h3>Step 4: Initialize Terraform</h3><p>Before we run anything, we need to tell Terraform to get ready. Run:</p><pre>terraform init</pre><p>Terraform will look at your code, realize you need the tool to make local files, and download it automatically. This is Terraform’s way of saying, <em>“Alright, I’m ready. Let’s do this.”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KuhNmsBdFY5ZauoA3JFL5Q.png" /></figure><h3>Step 5: Preview Before You Break Anything</h3><p>One of Terraform’s superpowers is the “Plan.” Run</p><pre>terraform plan</pre><p>Terraform will output a preview saying: <em>“I plan to create one file.”</em></p><p>This is why developers love Terraform. It tells you exactly what it’s about to do <em>before</em> it actually does it. Unlike some people in group projects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FdY-O5wrmubS59SB7gCmRg.png" /></figure><h3>Step 6: Apply (Make It Real)</h3><p>If the plan looks good, let’s pull the trigger. Run:</p><pre>terraform apply</pre><p>Terraform will pause and ask for confirmation. Type yes and hit Enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pj1rUemSLi5x1RFPe1VdiA.png" /></figure><p>Now, check your folder:</p><pre>ls</pre><p>You should see hello.txt. Open it up, and you&#39;ll find the content you defined in your code.</p><p><strong>Boom.</strong> You just created your first Terraform-managed resource. Welcome to Infrastructure as Code (IAC).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*oyZemAuvOBhnqcEgyhFeNA.gif" /></figure><h3>Step 7: The “Receipt” (terraform.tfstate)</h3><p>If you look at your folder again, you’ll see a new file called terraform.tfstate.</p><p><strong>Do not touch this file.</strong></p><p>This is Terraform’s memory. It tracks every resource it has created so it doesn’t forget and accidentally create duplicates later. It’s essentially the receipt for what you bought. Terraform is highly organized unlike my desktop downloads folder.</p><h3>Step 8: Clean Up Like a Responsible Engineer</h3><p>When you’re done, you don’t just delete the files manually. You let Terraform finish the job. Run:</p><pre>terraform destroy</pre><p>Type yes when prompted. Terraform reads its state file, finds the text file it created, and deletes it.</p><p>No manual cleanup. No <em>“Wait, why is this still running in AWS costing me money?”</em> Just clean and done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*kj7K2jMQx6QZnQjZVHswWA.gif" /></figure><h3>What You Just Learned</h3><p>In 10 minutes, you mastered the core Terraform workflow:</p><ul><li>terraform init (Prepare)</li><li>terraform plan (Preview)</li><li>terraform apply (Create)</li><li>terraform destroy (Cleanup)</li></ul><p>More importantly, you learned that <strong>Terraform is not about EC2.</strong> It’s about <strong>control</strong>. It’s about defining infrastructure in a way that is repeatable, predictable, and doesn’t require clicking around in dashboards at 2 AM.</p><h3>Where to Go Next</h3><p>Now that you understand the syntax without the stress, you are ready for the cloud. The next logical steps are:</p><ul><li>Setting up an Provider (safely).</li><li>Learning about variables.</li></ul><p><strong>I’ll be covering the variables</strong> <strong>tutorial in my next post.</strong></p><p>If this guide saved you a headache (or a few dollars), drop a clap and follow so you don’t miss Part 2!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zZxxfBv0wpt4nBv1Amv1Wg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a4aba40cc3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>