<?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 Priya Aryasr on Medium]]></title>
        <description><![CDATA[Stories by Priya Aryasr on Medium]]></description>
        <link>https://medium.com/@priyaaryasr?source=rss-fbbe929f3185------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MASYcRztyrgq8FwqhHM_HA.jpeg</url>
            <title>Stories by Priya Aryasr on Medium</title>
            <link>https://medium.com/@priyaaryasr?source=rss-fbbe929f3185------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 22:26:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@priyaaryasr/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[5 Things AI Can Do for You, but Never Instead of You]]></title>
            <link>https://medium.com/@priyaaryasr/5-things-ai-can-do-for-you-but-never-instead-of-you-96d84c69033a?source=rss-fbbe929f3185------2</link>
            <guid isPermaLink="false">https://medium.com/p/96d84c69033a</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Priya Aryasr]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 18:54:46 GMT</pubDate>
            <atom:updated>2026-11-18T18:54:46.334Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Hi, Medium family. It’s been a while since I wrote here, and today I am back with a topic that feels interesting, yet a little serious and worth thinking about.</strong></p><blockquote>I started using Claude quite often while coding, especially when I wanted to catch small details or errors I might have missed while writing code manually. And honestly, sometimes I would skip writing the code myself altogether. It was convenient, and there was nothing particularly wrong with that.</blockquote><p>But then I started wondering: how often do we actually try to think through a problem logically before handing it over to AI? How often do we give ourselves a chance to figure it out before asking for the solution?</p><p>That thought is what made me want to write about this.</p><p>AI can write code in seconds. It can explain errors, suggest solutions, build components, structure entire applications, and turn a simple prompt into something that would otherwise take hours of work.</p><p>It has made development easier in ways we couldn’t have imagined a few years ago. And honestly, there is nothing wrong with making our work easier.</p><p>But when everything becomes easier to obtain, do we sometimes lose the ability to understand it ourselves?</p><p>We live in a time where we rarely have to sit with a question for too long. Don’t know how to implement something? Ask AI. Can’t understand an error? Paste it. Need to write a function? Get one. Need to learn a new technology? You can have an entire roadmap in a few seconds.</p><p>And gradually, without even noticing, we can develop a habit of reaching for an answer before we’ve given our own minds enough time to search for one.</p><p>As developers, we know how frustrating it can be to spend hours debugging something that should have taken minutes. We try different approaches, make mistakes, break things, and sometimes end up going back to the very first line of code.</p><p>Now imagine how often we could avoid all that with AI.</p><p>But what if the mistakes we avoid today are the very ones that would have taught us something we need tomorrow?</p><blockquote><strong>I’m not against AI. I use it, and I appreciate what it can do.</strong> But I think there’s a difference between using a tool to improve our abilities and becoming so dependent on it that we stop exercising those abilities ourselves.</blockquote><p>There are things AI can assist us with, make easier, and even teach us. But there are some things we still need to experience, develop, and preserve within ourselves.</p><h3>1. The ability to think through a problem</h3><p>One of the most important parts of solving a problem isn’t knowing the answer. It’s knowing how to approach it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*H6gbvnBGTDvYRHZK" /><figcaption>Photo by <a href="https://unsplash.com/@sammyswae?utm_source=medium&amp;utm_medium=referral">sammy swae</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Imagine you’re working on a feature in your application. Something isn’t behaving the way it should. Maybe the data isn’t reaching the frontend, an API is returning unexpected results, or a component isn’t updating after a state change.</p><p>What do you do first?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YWDNJS4Qtvfb9JMI" /><figcaption>Photo by <a href="https://unsplash.com/@gogostevie?utm_source=medium&amp;utm_medium=referral">Stephen Harlan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Do you immediately paste the error or the entire code into AI and wait for a corrected version? Or do you pause for a moment, read the error, trace the request, and try to understand where things are going wrong?</p><p>There’s nothing wrong with asking for help. But there’s a difference between asking for help after trying to understand something and asking for help before even attempting to think about it.</p><p>The first approach might get you to the solution faster. The second gives you the opportunity to understand the journey to that solution.</p><p>And that journey matters because not every problem in software development will be familiar. You won’t always encounter the same error, the same codebase, or the same situation you have already solved. Sometimes the issue isn’t even where you think it is.</p><p>If we make a habit of accepting solutions without reasoning through them, we might become good at getting things done with assistance, but struggle when we need to approach an unfamiliar problem independently.</p><p>AI can offer a direction, suggest possibilities, and even help us see things we missed. But it shouldn’t become our only direction.</p><p>The ability to think, question, connect pieces of information, and arrive at a conclusion is something we need to continue exercising — just like any other skill.</p><h3>2. The patience to struggle without immediately escaping it</h3><p><em>We have become accustomed to convenience. Almost everything is available instantly, and when something takes longer than expected, our first instinct is often to look for a shortcut.</em></p><p>Learning, however, doesn’t always follow the pace we want it to.</p><p>Sometimes a concept takes days to understand. Sometimes the code we write fails for reasons we can’t immediately identify. Sometimes we read the same explanation several times and still don’t get it.</p><p><strong>And that’s okay.</strong></p><p>Not understanding something immediately doesn’t mean we’re incapable of understanding it. It simply means we haven’t understood it yet.</p><p>There is a certain kind of learning that happens when we try, fail, reconsider, and try again. We begin to notice details we missed. We recognize patterns. We start asking better questions. And sometimes, after struggling with something for a while, it finally clicks — and that feeling is different from simply being handed the answer.</p><p>If every uncomfortable moment is immediately replaced by a generated solution, we might never discover that we were actually quite close to figuring it out ourselves.</p><p>Of course, not every struggle is productive. We don’t need to spend six hours stuck on a simple bug just to prove our determination. We can seek help, use documentation, and learn from others.</p><p>But we should learn to distinguish between a problem that genuinely needs guidance and a moment of discomfort that we simply don’t want to sit through.</p><p>Sometimes, the shortcut saves time. Sometimes, the longer route builds something in us that the shortcut never could.</p><p>The ability to remain patient with ourselves while learning is something no tool should take away.</p><h3>3. The depth of understanding that comes from doing</h3><p>There is a difference between reading about something, watching someone do it, and doing it yourself.</p><p>You might watch a tutorial on authentication and understand every step while the instructor is explaining it. You might ask AI to create a complete authentication system with JWT, middleware, protected routes, and refresh tokens.</p><p>Everything looks clear. The code makes sense while you’re reading it. You understand what each file is supposed to do.</p><p>But then you open a blank project and try to build the same thing yourself.</p><p>Where do you begin? Why does the middleware need to run before the controller? Where should the token be stored? What happens if the token expires? How do you handle unauthorized requests? What happens if someone tries to access another user’s data?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*I1PGANbs43N6tX6v" /><figcaption>Photo by <a href="https://unsplash.com/@silverkblack?utm_source=medium&amp;utm_medium=referral">Vitaly Gariev</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Suddenly, something that seemed familiar becomes difficult.</p><p>And that is where we begin to recognize the difference between familiarity and actual understanding. When someone else presents a solution, we can follow it. But when we have to produce that solution ourselves, we discover the gaps in our knowledge.</p><p>Real understanding comes from interacting with what we learn — building it, changing it, breaking it, fixing it, and using it in different situations.</p><p>AI can explain a concept in ten different ways. It can give us examples, simplify difficult topics, and guide us through implementation. But we still need to put that knowledge into practice, because that’s where information starts becoming a skill.</p><p>We don’t become capable merely by seeing how something is done.</p><p>We become capable when we can do it, understand it, adapt it, and eventually use that understanding somewhere new.</p><p>And perhaps that’s something we should remind ourselves more often: <em>understanding a thing and being able to do that thing are not always the same.</em></p><h3>4. Our judgment — the ability to question what looks correct</h3><p>One of the most dangerous things about AI-generated answers isn’t always that they’re wrong.</p><p>Sometimes it’s that they’re convincing enough to make us stop questioning them.</p><p>AI can produce code that looks clean, explanations that sound logical, and solutions that appear complete. But a working solution is not necessarily a good solution.</p><p>It might solve the immediate problem while creating another one. It might introduce unnecessary dependencies, overlook security, perform poorly with larger datasets, or make the codebase harder to maintain.</p><p>For instance, a piece of code might work perfectly when tested with ten records but become painfully slow when handling a hundred thousand. A backend route might return the expected response but fail to verify whether the requesting user is actually authorized to access that data.</p><p>The code runs. The feature works. But is it reliable? Is it secure? Is it the right approach for the application we’re building?</p><p>This is where our judgment matters.</p><p>We need to understand the context in which a solution is being used, the trade-offs it introduces, and the consequences of implementing it. We need to be able to question an answer even when it looks impressive.</p><p>And this applies beyond software.</p><p>Whether we’re writing an article, making a decision, learning something new, or evaluating an idea, we should not confuse confidence in an answer with certainty about its correctness.</p><p>AI can provide information, suggestions, and possibilities. But the responsibility to evaluate them should remain ours.</p><p>Perhaps the more powerful AI becomes, the more important it is for us to know when to question it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*87jwZtyfuPwPAyLE" /><figcaption>Photo by <a href="https://unsplash.com/@srz?utm_source=medium&amp;utm_medium=referral">sydney Rae</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>5. The confidence to trust our own abilities</h3><p>Perhaps this is the most subtle thing we can lose.</p><p>When we repeatedly turn to AI for answers, we may begin to underestimate our own ability to find them. We open a blank editor and feel uncertain. We face a problem and immediately wonder what prompt would solve it. We know we’ve learned something, but we don’t trust ourselves enough to attempt it without assistance.</p><p>And that uncertainty can grow — not necessarily because we lack ability, but because we haven’t given ourselves enough opportunities to use it independently.</p><p>Think about the last time you solved a difficult problem on your own. Maybe it took longer than expected. Maybe you tried five different approaches before the sixth one worked. But when you finally figured it out, you knew not only the answer but also why the other approaches had failed.</p><p>That kind of experience builds confidence.</p><p>Confidence isn’t built by always getting the right answer. It’s built by attempting something when we’re unsure, making mistakes, correcting them, and realizing that we can handle more than we initially thought.</p><p>The next time you’re coding, try writing the logic before asking AI to generate it. When learning a concept, try explaining it in your own words before reading another explanation. When building a project, see how far you can get on your own, even if the result isn’t perfect.</p><p>You might surprise yourself.</p><p>And even when you don’t succeed, you’ll know exactly where you need help. That is a much stronger starting point than blindly accepting a solution you don’t understand.</p><p>We need to protect that trust in ourselves — the belief that we can learn something difficult, think through unfamiliar situations, and move forward without needing an immediate answer every single time.</p><p>Because if we stop trusting our own minds simply because a tool can respond faster, we might slowly forget just how much we’re capable of figuring out ourselves.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gqxher5j7YTSGhvj" /><figcaption>Photo by <a href="https://unsplash.com/@josealjovin?utm_source=medium&amp;utm_medium=referral">jose aljovin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Perhaps the real question isn’t what AI can do.</h3><p>AI is going to keep improving. It will become faster, more capable, and integrated into more of our daily work. Avoiding it completely may not be practical, and using it thoughtfully can be a genuine advantage.</p><p>But perhaps we should ask ourselves a different question:</p><p><strong>As our tools become more capable, are we making ourselves more capable alongside them?</strong></p><p>Are we learning more deeply, or simply completing more tasks? Are we becoming better at asking questions, or forgetting how to search for answers? Are we using the time AI saves us to explore further, or simply allowing ourselves to become more dependent on the next answer?</p><p>We don’t have to reject convenience to preserve our abilities.</p><p>We just have to remember that not everything we struggle to learn is a waste of time, not every delay needs to be eliminated, and not every answer needs to be given to us before we’ve had the chance to think.</p><p>Use AI. Explore it. Learn from it. Let it challenge you. Let it save you time when that time is better spent elsewhere.</p><p>But don’t let it become the voice you depend on so much that you stop listening to your own.</p><p>Let AI help you build things you couldn’t build before.</p><p>But don’t forget to build the person who is using it, too.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96d84c69033a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Go 1.27 Just Dropped. Kubernetes 1.37 Followed 7 Days Later. Coincidence?]]></title>
            <link>https://medium.com/@priyaaryasr/go-1-27-just-dropped-kubernetes-1-37-followed-7-days-later-coincidence-5031b4a8a757?source=rss-fbbe929f3185------2</link>
            <guid isPermaLink="false">https://medium.com/p/5031b4a8a757</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[go]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Priya Aryasr]]></dc:creator>
            <pubDate>Tue, 08 Sep 2026 13:51:57 GMT</pubDate>
            <atom:updated>2026-09-08T13:51:57.705Z</atom:updated>
            <content:encoded><![CDATA[<p>The surprising relationship between Go, Kubernetes, and the infrastructure powering modern cloud applications.</p><p>On <strong>August 19, 2026</strong>, the Go team released <strong>Go 1.27</strong>.</p><p>Exactly <strong>7 days later, on August 26, 2026</strong>, Kubernetes released <strong>Kubernetes v1.37</strong>.</p><p>At first glance, that timing looks almost too perfect.</p><p>Go gets a major release.</p><p>A week later, Kubernetes gets a major release.</p><p>So you might naturally ask:</p><blockquote><strong><em>Did Kubernetes 1.37 immediately move to Go 1.27?</em></strong></blockquote><p>Surprisingly, <strong>no.</strong></p><p>And that is where this story gets interesting.</p><h3>Kubernetes Is Built With Go. So Why Didn’t It Jump to Go 1.27?</h3><p>Kubernetes and Go have a very close relationship.</p><p>The Kubernetes control plane and many of its core components are written in Go. Go’s concurrency model, networking capabilities, static compilation, portability, and relatively simple deployment model make it a natural fit for infrastructure software.</p><p>So when Go 1.27 arrived on <strong>August 19</strong>, it would be reasonable to expect Kubernetes’ next release, arriving on <strong>August 26</strong>, to use it immediately.</p><p>But Kubernetes v1.37 was actually built with <strong>Go 1.26.5</strong>, not Go 1.27.</p><p>That’s not an accident.</p><p>It is a deliberate engineering decision.</p><p>And it tells us something important about how large infrastructure projects handle new language releases.</p><h3>First, Look at the Timeline</h3><p>Let’s put the dates side by side.</p><p>DateEvent<strong>February 10, 2026 </strong>Go 1.26 released<strong>August 19, 2026</strong>Go 1.27 released<strong>August 26, 2026</strong>Kubernetes v1.37 released <strong>September 1, 2026 </strong>Go 1.27.1 patch release</p><p>Go 1.27 arrived only <strong>one week before Kubernetes 1.37</strong>.</p><p>But Kubernetes doesn’t work like:</p><pre>Go releases new version<br>        ↓<br>Kubernetes immediately upgrades<br>        ↓<br>New Kubernetes release</pre><p>For infrastructure this critical, that would be a dangerous strategy.</p><p>Instead, there is a much more cautious process.</p><h3>The 3-Month Rule</h3><p>Kubernetes has publicly documented requirements around adopting new Go minor versions.</p><p>One of the most important requirements is:</p><blockquote><em>A new Go version should be available for </em><strong><em>at least 3 months</em></strong><em> before Kubernetes adopts it.</em></blockquote><p>Why?</p><p>Because Kubernetes needs time for the wider Go ecosystem to discover problems, regressions, compatibility issues, and unexpected behavior changes.</p><p>Imagine Go 1.27 introduces a subtle runtime change.</p><p>A normal application might discover the problem after deployment and roll back.</p><p>Now imagine that same problem exists inside:</p><ul><li>kube-apiserver</li><li>kubelet</li><li>kube-scheduler</li><li>kube-controller-manager</li><li>cluster networking</li><li>storage components</li></ul><p>The consequences are very different.</p><p>Kubernetes is not just another application.</p><p>It is infrastructure that other applications depend on.</p><p>So the Kubernetes project deliberately gives a new Go version time to mature before adopting it.</p><h3>There Is Another Rule: Kubernetes Must Run It First</h3><p>The Kubernetes policy goes even further.</p><p>Before an existing Kubernetes release branch adopts a new Go minor version, that Go version must have been used in a <strong>new Kubernetes minor release for at least one month</strong>.</p><p>That gives the community time to:</p><ul><li>run release-blocking tests</li><li>discover regressions</li><li>test real workloads</li><li>gather feedback</li><li>identify Kubernetes-specific compatibility problems</li></ul><p>Only after that confidence is established does the newer Go version become a safer candidate.</p><p>This explains the apparent mystery.</p><h3>Go 1.27:</h3><p><strong>August 19, 2026</strong></p><p>↓</p><h3>Kubernetes 1.37:</h3><p><strong>August 26, 2026</strong></p><p>↓</p><p>Only <strong>7 days apart</strong></p><p>But Kubernetes’ adoption process expects significantly more time than seven days.</p><p>So the dates are close.</p><p>The engineering timelines are not.</p><h3>Why Is This Such a Big Deal?</h3><p>Because Go 1.27 isn’t just a cosmetic update.</p><p>It changes several parts of the language, runtime, standard library, and tooling.</p><p>For example, Go 1.27 introduces <strong>generic methods</strong>.</p><p>It also introduces:</p><ul><li>encoding/json/v2</li><li>a native uuid package</li><li>improved memory allocation</li><li>a generally available goroutineleak profile</li><li>post-quantum ML-DSA support</li><li>experimental SIMD packages</li><li>improvements to the Go toolchain</li></ul><p>One particularly interesting runtime improvement is size-specialized memory allocation.</p><p>The Go team reports that small-object allocation costs can be reduced by <strong>up to 30%</strong>, with around <strong>1% overall improvement for allocation-heavy programs</strong>.</p><p>That sounds great.</p><p>But for Kubernetes, the question isn’t simply:</p><blockquote><em>“Is Go 1.27 faster?”</em></blockquote><p>The question is:</p><blockquote><strong><em>“Does Go 1.27 behave correctly across an enormous distributed system without introducing regressions?”</em></strong></blockquote><p>That’s a much harder question.</p><h3>Think About a Real Kubernetes Cluster</h3><p>Imagine a production platform running hundreds of nodes.</p><p>Those nodes may be running:</p><pre>kubelet<br>container runtime<br>networking<br>storage<br>monitoring<br>autoscaling<br>controllers<br>operators</pre><p>And above Kubernetes:</p><pre>┌─────────────────────────────┐<br>│       Applications          │<br>├─────────────────────────────┤<br>│       Kubernetes            │<br>├─────────────────────────────┤<br>│       Container Runtime     │<br>├─────────────────────────────┤<br>│       Linux / Kernel        │<br>├─────────────────────────────┤<br>│       Hardware              │<br>└─────────────────────────────┘</pre><p>A change in the programming language/runtime underneath Kubernetes can potentially affect behavior across this entire stack.</p><p>That’s why Kubernetes prefers <strong>predictability over being first</strong>.</p><h3>Then What Did Kubernetes 1.37 Actually Bring?</h3><p>This is where the story gets even more interesting.</p><p>Kubernetes v1.37 was released on <strong>August 26, 2026</strong>, with <strong>67 enhancements</strong>:</p><ul><li>16 Stable</li><li>23 Beta</li><li>27 Alpha</li><li>1 deprecation/removal</li></ul><p>And many of these improvements are aimed directly at the problems modern infrastructure is facing.</p><h3>1. Kubernetes Is Getting Better at AI/ML Workloads</h3><p>One of the biggest themes in Kubernetes 1.37 is resource management and scheduling.</p><p>For example, <strong>gang scheduling</strong> moves to Beta.</p><p>The idea is simple.</p><p>Imagine an AI training job needs 8 Pods.</p><p>If Kubernetes schedules 5 of them but cannot schedule the remaining 3, those 5 may sit there doing nothing.</p><p>Gang scheduling changes the model:</p><pre>Traditional scheduling:</pre><pre>Pod 1 → Scheduled<br>Pod 2 → Scheduled<br>Pod 3 → Scheduled<br>Pod 4 → Scheduled<br>Pod 5 → Scheduled<br>Pod 6 → Pending<br>Pod 7 → Pending<br>Pod 8 → Pending<br></pre><pre>Gang scheduling:</pre><pre>All 8 available?<br>       ↓<br>      YES<br>       ↓<br>Schedule the workload</pre><p>This is increasingly important as Kubernetes becomes a platform for AI/ML and HPC workloads.</p><h3>2. Dynamic Resource Allocation Is Getting More Powerful</h3><p>Kubernetes 1.37 also continues expanding <strong>Dynamic Resource Allocation (DRA)</strong>.</p><p>This matters particularly for specialized hardware such as accelerators.</p><p>Think:</p><pre>CPU<br>GPU<br>AI accelerator<br>High-performance device<br>Specialized hardware</pre><p>Instead of treating every resource as simply:</p><pre>CPU = 8<br>Memory = 32 GB</pre><p>Kubernetes can reason about more specialized resources and their lifecycle.</p><p>That’s increasingly important in modern cloud environments where workloads aren’t just asking for generic CPU and RAM anymore.</p><h3>3. Kubernetes Is Becoming More Security-Aware</h3><p>Kubernetes 1.37 also promotes features such as <strong>Pod Certificates</strong> and <strong>ClusterTrustBundles</strong> to Stable.</p><p>These are part of a broader trend:</p><blockquote><em>Kubernetes isn’t only becoming better at scheduling workloads. It’s becoming better at managing the identity and trust relationships those workloads need.</em></blockquote><p>This becomes increasingly important when clusters contain thousands of workloads communicating with each other.</p><h3>So Where Does Go 1.27 Fit Into All This?</h3><p>This is the part many articles will miss.</p><p>The relationship isn’t:</p><pre>Go 1.27<br>   ↓<br>Kubernetes 1.37</pre><p>It’s more like:</p><pre>Go<br>             │<br>             │ runtime<br>             │ libraries<br>             │ tooling<br>             ▼<br>       Kubernetes<br>             │<br>     ┌───────┼────────┐<br>     ▼       ▼        ▼<br>  Compute  Network  Storage<br>     │       │        │<br>     └───────┼────────┘<br>             ▼<br>       Cloud workloads</pre><p>Go provides the foundation.</p><p>Kubernetes builds a massive distributed system on top of that foundation.</p><p>And when the foundation changes, Kubernetes maintainers need evidence that the entire system still behaves correctly.</p><h3>The Interesting Part: Go 1.27 May Matter to Kubernetes Later</h3><p>This doesn’t mean Go 1.27 is irrelevant to Kubernetes.</p><p>Quite the opposite.</p><p>Features such as the new goroutineleak profile could be particularly interesting for long-running infrastructure software.</p><p>Kubernetes components are designed to run continuously.</p><p>A goroutine that gets stuck indefinitely isn’t just a small application bug.</p><p>Over time, problems like that can contribute to:</p><pre>goroutine buildup<br>       ↓<br>resource consumption<br>       ↓<br>performance degradation<br>       ↓<br>component instability</pre><p>Go 1.27’s goroutineleak profiling capabilities give developers better tools for detecting permanently blocked goroutines.</p><p>That’s the kind of improvement that can become valuable to infrastructure projects once they have had enough time to evaluate it.</p><h3>The Bigger Lesson</h3><p>The seven-day gap between the two releases is misleading.</p><p>It looks like:</p><blockquote><em>“Go 1.27 came out, and Kubernetes 1.37 followed a week later.”</em></blockquote><p>But the real story is:</p><blockquote><strong><em>Go evolves quickly. Kubernetes adopts carefully.</em></strong></blockquote><p>Go can release a new version and immediately make it available to millions of developers.</p><p>Kubernetes has to ask a different question:</p><p><strong>“Can we trust this version to run the infrastructure that runs other people’s infrastructure?”</strong></p><p>That’s why Kubernetes has explicit requirements around adoption time, testing, compatibility, and runtime behavior.</p><h3>So, Was the 7-Day Timing a Coincidence?</h3><p>In terms of the releases themselves?</p><p><strong>Yes, essentially.</strong></p><p>Kubernetes 1.37 was already on its own release cycle; its planned release date was <strong>August 26, 2026</strong>. Go 1.27 happened to release on <strong>August 19, 2026</strong>.</p><p>But the timing creates a much more interesting question:</p><blockquote><strong><em>If Go is one of the foundations of Kubernetes, how long should Kubernetes wait before trusting a new Go release?</em></strong></blockquote><p>And Kubernetes already has an answer:</p><p><strong>Not one week.</strong></p><p>The project intentionally gives new Go versions time to prove themselves.</p><p>That may feel slower.</p><p>But when you’re operating the software that runs the cloud, <strong>slow and predictable can be much more valuable than fast and exciting.</strong></p><h3>Final Thought</h3><p>The next time you see:</p><p><strong>Go 1.28 released.</strong></p><p>and then:</p><p><strong>Kubernetes releases a new version shortly afterward,</strong></p><p>don’t assume the two are automatically connected.</p><p>Look underneath the release notes.</p><p>Ask:</p><p><strong>Which Go version is Kubernetes actually using?</strong></p><p><strong>Why did the project choose that version?</strong></p><p><strong>What compatibility testing happened before the upgrade?</strong></p><p>Because in cloud infrastructure, the most important engineering decision isn’t always:</p><blockquote>“What’s the newest version?”</blockquote><p>Sometimes it’s:</p><blockquote><strong><em>“What’s the newest version we can trust?”</em></strong></blockquote><p>And that’s exactly why the story behind <strong>Go 1.27 and Kubernetes 1.37</strong> is more interesting than the seven-day gap itself.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5031b4a8a757" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Open Ai:Astra,The Next AI Model can Discover Security Flaws,Should Developers need to worry ?]]></title>
            <link>https://medium.com/@priyaaryasr/open-ai-astra-the-next-ai-model-can-discover-security-flaws-should-developers-need-to-worry-c8ea42cdf658?source=rss-fbbe929f3185------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8ea42cdf658</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[astra]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Priya Aryasr]]></dc:creator>
            <pubDate>Wed, 02 Sep 2026 18:55:05 GMT</pubDate>
            <atom:updated>2026-09-02T18:55:05.802Z</atom:updated>
            <content:encoded><![CDATA[<p>The code assistant is becoming security researcher</p><p>Open Ai just made an announcement that caught my attention immediately….<br>Open Ai announced its upcoming model,Astra on September 1,2026 which says it can identify previously unknown vulnerabilities and can develop ways to exploit them <strong>Due to what</strong> Because of these capabilities, OpenAI considers Astra a critical cybersecurity capability and says it requires stronger safeguards before release.</p><p>So , The point is Ai is moving beyond !Its not only simply going to generate code for you .It can increasingly analyze ,and find weaknesses for sure and will act on Issues too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VxUewk3A1ZBxN1X7" /><figcaption>Photo by <a href="https://unsplash.com/@jacksonsophat?utm_source=medium&amp;utm_medium=referral">Jackson Sophat</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>What makes Astra different?</h3><p>Unknown Vulnerabilities and rasing known and unknown both bugs.</p><p>They are looking beyond from the vulenrabilities that they already knew and this is there ability.<br>if a vulnerability is known developers can easily test it by making a team that creates tests for it . use security tools and check whether the app is exposed to that problem or not.<br>But in case no one knows this Security weakness yet ?..then, what?</p><p>But what happens when the vulnerability is not known yet?</p><p>This is where things become much more difficult. You cannot simply test for a vulnerability that nobody has discovered. It may come from an unexpected interaction between different parts of a system, or from a situation that developers never thought about while building or testing the application.</p><p>And if AI can do this faster and at a larger scale, it could change how developers and security researchers think about protecting software.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8ea42cdf658" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Go 1.27 Is Here: 5 Changes That Actually Matter for Cloud & Backend Developers]]></title>
            <link>https://medium.com/@priyaaryasr/go-1-27-is-here-5-changes-that-actually-matter-for-cloud-backend-developers-b8c29b99a121?source=rss-fbbe929f3185------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8c29b99a121</guid>
            <category><![CDATA[go]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Priya Aryasr]]></dc:creator>
            <pubDate>Wed, 02 Sep 2026 05:01:01 GMT</pubDate>
            <atom:updated>2026-09-02T05:01:01.865Z</atom:updated>
            <content:encoded><![CDATA[<p>From generic methods to goroutine leak profiling and faster memory allocation, here’s what Go 1.27 changes for developers building production systems.</p><p>Every Go release comes with a long list of changes.</p><p>Some are small improvements that most developers will never notice. Others are experimental features that may take years to become part of everyday development.</p><p><strong>Go 1.27, released on August 19, 2026,</strong> is interesting for a different reason: several of its changes target problems developers eventually encounter when building real applications — code reuse, memory allocation, concurrency debugging, JSON processing, and dependency management.</p><p>I went through the Go 1.27 release and picked five changes that I think are particularly worth understanding if you work with backend services, cloud infrastructure, APIs, or developer tooling.</p><h3>1. Generic Methods Are Finally Here</h3><p>Go added generics in Go 1.18.</p><p>They made it possible to write reusable functions and types without duplicating the same implementation for different data types.</p><p>For example, instead of creating separate list implementations for integers and strings, you could write:</p><pre>type List[E any] struct {<br>    elem E<br>    next *List[E]<br>}</pre><p>But there was a limitation.</p><p>Before Go 1.27, <strong>methods could not declare their own type parameters</strong>.</p><p>That meant developers sometimes had to move generic operations into standalone functions.</p><p>For example, the Go team describes a situation where a generic List could be transformed using a separate function:</p><pre>func MapList[E, R any](l List[E], f func(E) R) List[R] {<br>    // ...<br>}</pre><p>This works, but it means the operation lives outside the type.</p><p>Go 1.27 changes that.</p><p>A method can now have its own type parameter:</p><pre>func (List[E]) Map[R any](f func(E) R) List[R] {<br>    // ...<br>}</pre><p>This allows code such as:</p><pre>NewList(0, 2, 4).<br>    Map(add(2)).<br>    Map(divideBy(2))</pre><p>instead of nesting standalone function calls.</p><h3>Why does this matter?</h3><p>At first, generic methods may sound like a feature that only language enthusiasts should care about.</p><p>But methods are also about <strong>organization</strong>.</p><p>Infrastructure and backend projects often contain abstractions around:</p><ul><li>API clients</li><li>configuration</li><li>data processing</li><li>queues</li><li>cloud resources</li><li>CLI commands</li><li>internal libraries</li></ul><p>When an operation naturally belongs to a type, being able to express that operation as a generic method can make the API easier to organize and use.</p><p>Go’s own math/rand/v2 package provides another example. Before Go 1.27, it needed separate methods such as:</p><pre>func (r *Rand) Int32N(n int32) int32<br>func (r *Rand) Int64N(n int64) int64<br>func (r *Rand) IntN(n int) int</pre><p>Go 1.27 can express the general operation with a generic method:</p><pre>func (r *Rand) N[Int intType](n Int) Int</pre><p>The result is less repetitive API design for operations that naturally work across multiple integer types.</p><p>There is an important limitation, though: <strong>Go 1.27 does not introduce generic interface methods.</strong></p><p>So this is not a complete redesign of Go’s interface system. It is specifically about generic methods on concrete types.</p><h3>2. Small Memory Allocations Can Become Much Cheaper</h3><p>This is one of the runtime changes that backend developers should pay attention to.</p><p>Go 1.27 introduces <strong>size-specialized memory allocation routines</strong>.</p><p>The idea is straightforward: for certain small objects, the compiler can generate calls to allocation routines specialized for the object’s size.</p><p>According to the Go team’s release notes, allocations for objects smaller than 80 bytes can become <strong>up to 30% cheaper</strong>, while allocation-heavy real-world programs see an estimated overall performance improvement of around <strong>1%</strong>.</p><p>Those two numbers should not be confused.</p><p>It does <strong>not</strong> mean:</p><blockquote><em>“Upgrade to Go 1.27 and your application will become 30% faster.”</em></blockquote><p>The 30% figure applies to the cost of certain small allocations.</p><p>The broader effect on a real application depends on its workload.</p><p>For example, imagine a backend service processing thousands of requests:</p><pre>Incoming traffic<br>                    ↓<br>              Load Balancer<br>                    ↓<br>        ┌───────────┼───────────┐<br>        ↓           ↓           ↓<br>      Go API      Go API      Go API<br>       Pod 1       Pod 2       Pod 3</pre><p>Each request may create temporary objects.</p><p>Those allocations happen continuously.</p><p>At a small scale, a tiny improvement might not matter.</p><p>At a much larger scale, however, even small runtime improvements can become interesting because the application may be running dozens or hundreds of replicas.</p><p>This is especially relevant for:</p><ul><li>high-throughput APIs</li><li>network services</li><li>data-processing systems</li><li>infrastructure services</li><li>latency-sensitive applications</li></ul><p>But the correct engineering approach is not to assume an improvement.</p><p><strong>Measure it.</strong></p><p>A sensible upgrade process would be:</p><pre>Go 1.26<br>   ↓<br>Benchmark<br>   ↓<br>Measure CPU / memory / allocations / latency<br>   ↓<br>Go 1.27<br>   ↓<br>Run the same benchmark<br>   ↓<br>Compare</pre><p>If your workload is allocation-heavy, Go 1.27 may give you a measurable benefit.</p><p>If it isn’t, you may see little difference.</p><p>That’s why benchmarks matter more than release-note headlines.</p><h3>3. Goroutine Leak Profiling Is Now Generally Available</h3><p>This might be my favorite change in Go 1.27.</p><p>Go is famous for its concurrency model and goroutines.</p><p>A goroutine can be started very easily:</p><pre>go processRequest()</pre><p>That simplicity is one of Go’s strengths.</p><p>But concurrency also introduces a class of bugs that can be difficult to diagnose: <strong>goroutine leaks</strong>.</p><p>Imagine an application repeatedly creating goroutines that become permanently blocked:</p><pre>Request<br>   ↓<br>Create goroutine<br>   ↓<br>Wait for channel / lock / condition<br>   ↓<br>Something goes wrong<br>   ↓<br>Goroutine can never proceed<br>   ↓<br>Goroutine remains blocked</pre><p>Repeat that thousands of times and the application can accumulate permanently blocked goroutines.</p><p>Go 1.27 introduces the generally available goroutineleak profile in runtime/pprof.</p><p>The runtime can automatically detect a class of goroutine leaks involving goroutines that are permanently blocked on concurrency primitives such as channels, sync.Mutex, or sync.Cond.</p><p>That gives developers another tool when investigating production problems.</p><p>Instead of seeing:</p><pre>Memory usage ↑</pre><p>and simply restarting the container, you can investigate whether permanently blocked goroutines are contributing to the problem.</p><p>The debugging workflow can look more like:</p><pre>Production service<br>       ↓<br>Resource usage increases<br>       ↓<br>Inspect pprof<br>       ↓<br>Check goroutine profiles<br>       ↓<br>Check goroutineleak profile<br>       ↓<br>Identify permanently blocked goroutines<br>       ↓<br>Trace the problem back to application code</pre><p>For backend and infrastructure teams, this is particularly useful because concurrency bugs often don’t appear immediately.</p><p>An application might work perfectly during a small test.</p><p>Then traffic increases.</p><p>A particular failure path happens repeatedly.</p><p>And suddenly the service has thousands of goroutines that should no longer exist.</p><p>Having a runtime-level tool for identifying this class of problem is a meaningful improvement.</p><h3>4. encoding/json/v2 Is Now Part of Go&#39;s Standard Library</h3><p>JSON might not sound exciting.</p><p>But almost every modern backend system depends on it.</p><p>Consider a simple architecture:</p><pre>Client<br>  ↓<br>API<br>  ↓<br>Go service<br>  ↓<br>JSON<br>  ↓<br>Another service<br>  ↓<br>Database / queue / API</pre><p>And in a microservice environment, that happens repeatedly.</p><p>Go 1.27 adds encoding/json/v2 for higher-level JSON processing, along with encoding/json/jsontext for lower-level JSON streaming and manipulation.</p><p>The existing encoding/json package is also backed by the new implementation while maintaining backwards compatibility.</p><p>The new API provides more configurable behavior and stricter defaults.</p><p>That matters because JSON processing is not simply:</p><pre>json.Marshal(data)</pre><p>in every production application.</p><p>Large systems may care about:</p><ul><li>performance</li><li>streaming</li><li>strictness</li><li>compatibility</li><li>custom serialization behavior</li><li>memory usage</li></ul><p>The important point for existing applications is that <strong>you don’t need to rewrite everything just because Go 1.27 exists</strong>.</p><p>The release is designed to maintain compatibility with existing Go programs.</p><p>Instead, developers can evaluate the new functionality when they actually need its capabilities.</p><h3>5. UUID Support Is Now Built Into the Standard Library</h3><p>Another seemingly small change is the addition of a standard-library uuid package.</p><p>UUIDs are everywhere in backend systems:</p><pre>User ID<br>Order ID<br>Document ID<br>Request ID<br>Trace ID</pre><p>Historically, Go developers commonly relied on external packages for UUID generation and parsing.</p><p>Go 1.27 now provides native support for UUIDs in the standard library.</p><p>Why should infrastructure developers care?</p><p>Because every external dependency adds something to the software supply chain:</p><pre>External package<br>      ↓<br>Version management<br>      ↓<br>Dependency updates<br>      ↓<br>Security scanning<br>      ↓<br>Build pipeline<br>      ↓<br>Production</pre><p>Removing a dependency doesn’t automatically make a project safer.</p><p>But when commonly needed functionality becomes available in the standard library, teams have another option.</p><p>Again, migration should be based on the actual project.</p><p>If an existing UUID library works well and changing it provides no meaningful benefit, there may be no reason to migrate immediately.</p><h3>A Bonus: Go Is Also Preparing for Post-Quantum Cryptography</h3><p>Go 1.27 adds crypto/mldsa, implementing the ML-DSA post-quantum signature scheme standardized as FIPS 204.</p><p>The implementation is integrated with crypto/x509 and crypto/tls.</p><p>This isn’t something most developers will suddenly use in every application.</p><p>But it is worth noticing.</p><p>Modern infrastructure depends heavily on:</p><ul><li>TLS</li><li>certificates</li><li>authentication</li><li>digital signatures</li><li>service-to-service communication</li></ul><p>Post-quantum cryptography is becoming part of the long-term security conversation.</p><p>Having standardized post-quantum functionality appear in a mainstream programming language’s standard library is therefore an important signal about where infrastructure security is heading.</p><h3>What Does Go 1.27 Mean for Cloud and DevOps?</h3><p>There isn’t a new Kubernetes feature hidden inside Go 1.27.</p><p>That’s an important distinction.</p><p>Go 1.27 is a programming-language and runtime release.</p><p>But Go is heavily used for backend services, command-line tools, cloud infrastructure, and parts of the cloud-native ecosystem.</p><p>So the connection looks like this:</p><pre>Go 1.27<br>    ↓<br>Language + Runtime + Standard Library<br>    ↓<br>Go applications and tools<br>    ↓<br>Backend services / CLI / Infrastructure<br>    ↓<br>Containers / Kubernetes / Cloud</pre><p>The benefit is therefore not:</p><blockquote><em>“Go 1.27 adds a Kubernetes feature.”</em></blockquote><p>It’s:</p><blockquote><strong><em>Go 1.27 gives Go-based infrastructure software better language features, runtime behavior, diagnostics, and standard-library capabilities.</em></strong></blockquote><p>That distinction is important when evaluating a new language release.</p><h3>Should You Upgrade to Go 1.27?</h3><p>Probably — but don’t treat a version upgrade as a simple number change.</p><p>A production upgrade should look something like this:</p><h3>1. Check dependencies</h3><p>Make sure your project’s dependencies and tooling work with Go 1.27.</p><h3>2. Run the complete test suite</h3><p>Don’t stop at unit tests.</p><p>Run:</p><pre>Unit tests<br>     ↓<br>Integration tests<br>     ↓<br>API tests<br>     ↓<br>End-to-end tests</pre><h3>3. Rebuild your container</h3><p>If your application runs in Docker, update the build environment deliberately.</p><p>For example:</p><pre>FROM golang:1.27 AS builder</pre><p>Then rebuild the image and test it.</p><h3>4. Benchmark important workloads</h3><p>If performance matters, compare the old and new Go versions under the same workload.</p><p>Measure:</p><ul><li>CPU</li><li>memory</li><li>allocations</li><li>latency</li><li>throughput</li></ul><h3>5. Test concurrency-heavy services</h3><p>If your application uses many goroutines, the new profiling capabilities are particularly worth exploring.</p><h3>6. Roll out gradually</h3><p>For a production service, you don’t necessarily need to upgrade every instance at once.</p><p>A gradual rollout can help detect unexpected behavior before the entire fleet changes.</p><h3>The Bigger Picture</h3><p>Go 1.27 isn’t a release where one feature completely changes the language.</p><p>That’s actually what makes it interesting.</p><p>Several different parts of Go are improving simultaneously:</p><pre>Go 1.27<br>                       |<br>          ┌────────────┼────────────┐<br>          ↓            ↓            ↓<br>       Language      Runtime      Standard<br>                                  Library<br>          ↓            ↓            ↓<br>      Generics      Allocation      JSON<br>       Methods      Improvements    UUID<br>                       ↓<br>                  Goroutine<br>                    Profiling</pre><p>The language becomes more expressive.</p><p>The runtime becomes more efficient for certain workloads.</p><p>The debugging tools become better at identifying concurrency problems.</p><p>And the standard library gains functionality that developers previously obtained through additional packages.</p><p>None of these changes individually means you need to rewrite your application.</p><p>But together, they make Go 1.27 a release worth paying attention to if you’re building software that needs to run reliably in production.</p><h3>Final Thoughts</h3><p>The most useful question isn’t:</p><blockquote><strong><em>“What’s new in Go 1.27?”</em></strong></blockquote><p>It’s:</p><blockquote><strong><em>“Which of these changes could actually improve the software I’m responsible for?”</em></strong></blockquote><p>If you build backend services, the new JSON implementation and runtime improvements may be interesting.</p><p>If you build concurrent systems, goroutineleak profiling deserves attention.</p><p>If you maintain reusable Go libraries, generic methods could make some APIs cleaner.</p><p>If you manage dependencies, the new UUID package gives you another opportunity to reduce external dependencies.</p><p>And if you’re responsible for infrastructure security, the addition of ML-DSA is worth watching even if you don’t use it today.</p><p>Go 1.27 doesn’t completely reinvent Go.</p><p>Instead, it continues to make the language, runtime, and standard library better suited for the kind of software Go has become known for: <strong>fast, concurrent, reliable systems that run in the background and keep the internet moving.</strong></p><p>And that is probably the part of this release that cloud and backend developers should care about most.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8c29b99a121" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Compose Build: A Practical Guide to Building, Rebuilding, and Troubleshooting]]></title>
            <link>https://medium.com/@priyaaryasr/docker-compose-build-a-practical-guide-to-building-rebuilding-and-troubleshooting-6710739a541c?source=rss-fbbe929f3185------2</link>
            <guid isPermaLink="false">https://medium.com/p/6710739a541c</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[docker-compose]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Priya Aryasr]]></dc:creator>
            <pubDate>Mon, 31 Aug 2026 13:03:50 GMT</pubDate>
            <atom:updated>2026-08-31T13:03:50.262Z</atom:updated>
            <content:encoded><![CDATA[<h3>Docker Compose Build: A Practical Guide with a Real Node.js Example</h3><p>If you are learning Docker Compose, you will eventually run into a simple but confusing question:</p><p><strong>“I changed my application code. Why is Docker still using the old version?”</strong></p><p>This is where understanding docker compose build becomes important.</p><p>When working with Docker Compose, you will commonly see commands such as:</p><pre>docker compose build<br>docker compose up<br>docker compose up --build</pre><p>At first, these commands can look almost interchangeable. They are not.</p><p>Each one has a different purpose, and understanding the difference can save you from repeatedly rebuilding containers, wondering why your changes are not appearing, or deleting everything and starting over.</p><p>In this guide, we will learn how docker compose build actually works by building a small <strong>Node.js application</strong> from scratch.</p><p>Instead of only explaining the commands theoretically, we will use a real project to see what happens at each step.</p><p>By the end, you will understand:</p><ul><li>What docker compose build actually does</li><li>How a Dockerfile is used during the build</li><li>How Docker images and containers are related</li><li>When an image gets rebuilt</li><li>What docker compose up does</li><li>What docker compose up --build changes</li><li>How Docker’s build cache affects your application</li><li>Common mistakes beginners make</li><li>How to troubleshoot outdated code inside a container</li></ul><p>Let’s Docker Compose by actually using it.</p><h3>What Does docker compose build Actually Do?</h3><p>If you already have a Node.js project and want to run it with Docker Compose, one of the first commands you’ll encounter is:</p><pre>docker compose build</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*GATMJwvH_uvqBjqZ-hse3g.png" /></figure><p>But what actually happens when you run it?</p><p>The simplest way to think about it is:</p><blockquote><strong><em>docker compose build takes the instructions in your Dockerfile, uses your project files as the build context, and creates or updates a Docker image.</em></strong></blockquote><p>It does <strong>not</strong> start your application.</p><p>It does <strong>not</strong> create a running container.</p><p>Its job is to <strong>build the image that your container will later run from</strong>.</p><h3>The process at a high level</h3><p>When you run:</p><pre>docker compose build</pre><p>Docker Compose looks at your compose.yaml file and finds the service that has a build configuration.</p><p>For example:</p><pre>services:<br>  app:<br>    build:<br>      context: .<br>    ports:<br>      - &quot;3000:3000&quot;</pre><p>Here, context: . means:</p><blockquote><em>Use the current directory as the </em><strong><em>build context</em></strong><em>.</em></blockquote><p>Docker then uses the Dockerfile in that context to determine how the image should be created.</p><p>The process looks roughly like this:</p><pre>compose.yaml<br>     ↓<br>build configuration<br>     ↓<br>build context<br>     ↓<br>Dockerfile<br>     ↓<br>Docker executes each instruction<br>     ↓<br>Docker image</pre><p>The important thing to understand is that <strong>the Dockerfile contains the instructions, while the image is the result of following those instructions.</strong></p><h3>1. How Is the Dockerfile Used During the Build?</h3><p>Let’s look at the Dockerfile from our example:</p><pre>FROM node:22-alpine</pre><pre>WORKDIR /app</pre><pre>COPY package*.json ./</pre><pre>RUN npm install</pre><pre>COPY src ./src</pre><pre>EXPOSE 3000</pre><pre>CMD [&quot;npm&quot;, &quot;start&quot;]</pre><p>When you run:</p><pre>docker compose build</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*GATMJwvH_uvqBjqZ-hse3g.png" /></figure><p>Docker processes these instructions to create the image.</p><h3>FROM</h3><pre>FROM node:22-alpine</pre><p>This tells Docker which base image to start from.</p><p>Instead of creating an operating system environment from nothing, we’re starting with an existing lightweight Node.js image.</p><p>Think of it as the starting point for our application environment.</p><h3>WORKDIR</h3><pre>WORKDIR /app</pre><p>This sets /app as the working directory inside the image.</p><p>The following commands will work relative to this directory.</p><h3>COPY</h3><pre>COPY package*.json ./</pre><p>This copies the project’s package files from the build context into /app inside the image.</p><h3>RUN</h3><pre>RUN npm install</pre><p>Now Docker runs npm install <strong>while building the image</strong>.</p><p>The dependencies are installed into the image itself.</p><h3>Copy the application code</h3><pre>COPY src ./src</pre><p>Our application source code is then copied into the image.</p><h3>EXPOSE</h3><pre>EXPOSE 3000</pre><p>This documents that the application is expected to use port 3000.</p><p>It does not by itself publish the port to your computer.</p><p>The actual port mapping is configured in compose.yaml:</p><pre>ports:<br>  - &quot;3000:3000&quot;</pre><h3>CMD</h3><pre>CMD [&quot;npm&quot;, &quot;start&quot;]</pre><p>This tells Docker what command should run when a container is started from the image.</p><p>Notice the difference:</p><p><strong>RUN happens while building the image.</strong></p><p><strong>CMD is used when a container starts.</strong></p><p>That’s an important distinction.</p><h3>2. How Are Docker Images and Containers Related?</h3><p>This is one of the most important concepts to understand before going further.</p><p>A <strong>Docker image</strong> is the packaged result of your build instructions.</p><p>A <strong>container</strong> is a running instance created from that image.</p><p>A simple analogy is:</p><blockquote><strong><em>Image = blueprint/package</em></strong><em><br></em><strong><em>Container = running instance created from that package</em></strong></blockquote><p>So when we run:</p><pre>docker compose build</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*GATMJwvH_uvqBjqZ-hse3g.png" /><figcaption>This creates an image</figcaption></figure><p>we are creating or updating the <strong>image</strong>.</p><p>When we later run:</p><pre>docker compose up</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*uw8pdmxDYMN-zZguuXamxg.png" /></figure><p>Docker uses that image to create and start the <strong>container</strong>.</p><p>The relationship looks like this:</p><pre>Dockerfile<br>    ↓<br> docker compose build<br>    ↓<br> Docker Image<br>    ↓<br> docker compose up<br>    ↓<br> Docker Container<br>    ↓<br> Running Node.js Application</pre><p>This distinction becomes especially important when your application code changes.</p><h3>3. When Does a Docker Image Get Rebuilt?</h3><p>This is where beginners often get confused.</p><p>Imagine we build our application:</p><pre>docker compose build</pre><p>Docker creates an image containing our application code.</p><p>Now suppose we change:</p><pre>src/server.js</pre><p>The file on our computer has changed.</p><p>But the already-built Docker image <strong>doesn’t automatically change</strong>.</p><p>The image is a previously built snapshot of what was available during the build.</p><p>If we want the updated source code to be included in a new image, we need to build again:</p><pre>docker compose build</pre><p>Docker will compare the build instructions and build context with its existing build cache and determine which parts need to be rebuilt.</p><p>This is why you can have:</p><pre>Your computer<br>    ↓<br>Updated source code</pre><pre>Docker image<br>    ↓<br>Older source code</pre><p>They can temporarily contain different versions of your application.</p><p>That’s also one of the reasons you might change your code and still see the old behaviour inside a container.</p><h3>4. What Does docker compose up Do?</h3><p>Now that we understand images, let’s look at:</p><pre>docker compose up</pre><p>Unlike docker compose build, this command is about <strong>running the services defined in your Compose file</strong>.</p><p>For our example:</p><pre>services:<br>  app:<br>    build:<br>      context: .<br>    ports:<br>      - &quot;3000:3000&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*bXRVKuMRXsZ1JRgbC9fDXA.png" /></figure><p>When you run:</p><pre>docker compose up</pre><p>Docker Compose will make sure the required image exists and then create and start the container.</p><p>Conceptually:</p><pre>Existing Docker image<br>        ↓<br>docker compose up<br>        ↓<br>Container created<br>        ↓<br>Container started<br>        ↓<br>Node.js application running</pre><p>The important question is:</p><blockquote><strong><em>What if you changed your source code after the image was built?</em></strong></blockquote><p>docker compose up does not mean:</p><blockquote><em>“Rebuild everything because my files changed.”</em></blockquote><p>If the existing image is used, the container can still be running code from that image.</p><p>That’s where the next command becomes useful.</p><h3>5. What Does docker compose up --build Change?</h3><p>Now consider:</p><pre>docker compose up --build</pre><p>The --build option tells Compose to <strong>build the image before starting the containers</strong>.</p><p>So instead of thinking:</p><pre>Image<br>  ↓<br>Container</pre><p>we can think of it as:</p><pre>Dockerfile + project files<br>        ↓<br>      Build<br>        ↓<br>    Updated image<br>        ↓<br>      Container<br>        ↓<br>    Application</pre><p>This is particularly useful when you’ve changed something that needs to be included in the image.</p><p>For example:</p><pre>You change server.js<br>        ↓<br>Existing image still contains old version<br>        ↓<br>docker compose up --build<br>        ↓<br>Image is rebuilt<br>        ↓<br>New container uses the rebuilt image</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*umG57JiIq-rfxstF6-kkjw.png" /><figcaption>i changed the message (see res.json)</figcaption></figure><h3>build vs up in simple terms</h3><p>CommandMain purposedocker compose buildBuild/update the imagedocker compose upStart the Compose servicesdocker compose up --buildBuild/update the image, then start the services</p><p>The important thing is not to memorize these as three unrelated commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*O_95IikcmrJYrtjExjRduw.png" /></figure><p>Think about the workflow:</p><pre>BUILD<br>  ↓<br>IMAGE<br>  ↓<br>UP<br>  ↓<br>CONTAINER</pre><p>And:</p><pre>UP --BUILD<br>  ↓<br>BUILD IMAGE FIRST<br>  ↓<br>START CONTAINER</pre><h3>6. How Does Docker’s Build Cache Affect Your Application?</h3><p>Docker doesn’t necessarily rebuild every instruction from scratch every time.</p><p>It uses a <strong>build cache</strong> to reuse layers from previous builds when possible.</p><p>Consider our Dockerfile:</p><pre>FROM node:22-alpine</pre><pre>WORKDIR /app</pre><pre>COPY package*.json ./</pre><pre>RUN npm install</pre><pre>COPY src ./src</pre><pre>EXPOSE 3000</pre><pre>CMD [&quot;npm&quot;, &quot;start&quot;]</pre><p>Suppose you only change:</p><pre>src/server.js</pre><p>and run:</p><pre>docker compose build</pre><p>Docker may be able to reuse the earlier layers for:</p><pre>FROM node:22-alpine<br>WORKDIR /app<br>COPY package*.json ./<br>RUN npm install</pre><p>and only rebuild the layers affected by the changed source code.</p><p>This is one reason our Dockerfile copies package*.json before the application source:</p><pre>COPY package*.json ./<br>RUN npm install</pre><pre>COPY src ./src</pre><p>If only the source code changes, Docker can potentially reuse the dependency-installation layer instead of running npm install again.</p><p>That can make repeated builds much faster.</p><h3>What if you don’t want to use the cache?</h3><p>You can explicitly request a fresh build:</p><pre>docker compose build --no-cache</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*OV0JFsTeKCK4YhVAZ0NxyQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nbgbgiL2vvnODMMY-jLYPQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vLMeIC9n0yUNa860atfK4A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yYTTqV_nyWQAltRDih8hcA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*67TODe7v39E3zG6MUc-Kqg.png" /></figure><p>This tells Docker not to use the existing build cache for the build.</p><p>It’s useful when you suspect the cache is causing unexpected behaviour or you want to verify that the image is being built completely from the current inputs.</p><h3>7. Common Beginner Mistakes</h3><h3>Mistake 1: Assuming docker compose up always rebuilds</h3><p>You changed your source code and immediately ran:</p><pre>docker compose up</pre><p>Then you still see the old behaviour.</p><p>The reason may be that your container is using an image that was built before your change.</p><p>Try:</p><pre>docker compose up --build</pre><p>when the change needs to be included in the image.</p><h3>Mistake 2: Confusing an image with a container</h3><p>An image and a container are not the same thing.</p><p>You can rebuild an image without having a running container.</p><p>And you can have a container created from an older version of an image.</p><p>Keeping this distinction clear makes Docker much easier to understand.</p><h3>Mistake 3: Rebuilding for every source-code change when using bind mounts</h3><p>Not every development setup requires rebuilding for every code change.</p><p>If your Compose configuration mounts your source code into the container, for example:</p><pre>volumes:<br>  - ./src:/app/src</pre><p>then the container may be reading your current source files directly from your machine.</p><p>In that setup, changing src/server.js may not require an image rebuild.</p><p>This is different from our simple image-copying example.</p><p><strong>Whether you need to rebuild depends on how your application and Compose file are configured.</strong></p><h3>Mistake 4: Using --no-cache for everything</h3><p>If you are having a problem, it can be tempting to run:</p><pre>docker compose build --no-cache</pre><p>every time.</p><p>Usually, that’s unnecessary.</p><p>Docker’s cache exists to make builds faster. Disable it when you actually need a completely fresh build, rather than treating it as the default solution.</p><h3>8. How to Troubleshoot Outdated Code Inside a Container</h3><p>You’ve changed your code, but the container still behaves as if nothing changed.</p><p>Don’t immediately delete everything.</p><p>Work through the problem step by step.</p><h3>Step 1: Check whether your image needs rebuilding</h3><p>Try:</p><pre>docker compose build</pre><p>Then start the application:</p><pre>docker compose up</pre><p>Or combine the two:</p><pre>docker compose up --build</pre><h3>Step 2: Check whether your source code is copied into the image</h3><p>Look at your Dockerfile.</p><p>For example:</p><pre>COPY src ./src</pre><p>If your source isn’t copied into the image, rebuilding won’t magically put it there.</p><h3>Step 3: Check whether a volume is overriding the files</h3><p>Look at your compose.yaml.</p><p>A volume such as:</p><pre>volumes:<br>  - ./src:/app/src</pre><p>can change where the container gets its source code from.</p><p>Your container may not actually be using the source code you think it is.</p><h3>Step 4: Check the build output</h3><p>Run:</p><pre>docker compose build</pre><p>and pay attention to which steps are being rebuilt and which are being retrieved from cache.</p><h3>Step 5: Try a clean build when necessary</h3><p>If you still suspect stale build layers:</p><pre>docker compose build --no-cache</pre><p>Then:</p><pre>docker compose up</pre><p>This gives you a fresh image build based on the current Dockerfile and build context.<br>Now open up your localhost on theport it is running , you will see an output as i am seeing here</p><h3>The Mental Model to Remember</h3><p>If you remember only one thing from this guide, remember this:</p><pre>Your project<br>     ↓<br>Dockerfile + build context<br>     ↓<br>docker compose build<br>     ↓<br>Docker Image<br>     ↓<br>docker compose up<br>     ↓<br>Docker Container<br>     ↓<br>Running Application</pre><p>And when your application changes:</p><pre>Code changed<br>     ↓<br>Does the container get the changed code automatically?<br>     ↓<br>Depends on your Compose setup<br>     ↓<br>If the code is baked into the image:<br>rebuild the image<br>     ↓<br>docker compose up --build</pre><p>Once you understand this flow, docker compose build, docker compose up, and docker compose up --build stop feeling like three mysterious Docker commands. They become different steps in the same workflow.</p><h3>What If Your Application Still Doesn’t Work?</h3><p>Following a Docker Compose guide doesn’t always mean everything will work exactly as expected.</p><p>Your project may already have its own setup, dependencies, environment variables, database configuration, or development workflow. A command that works perfectly in our example may need adjustments in your project.</p><p>If something doesn’t work, don’t assume that Docker Compose itself is broken.</p><p>Start by checking the basics.</p><h3>1. Check the Dockerfile</h3><p>Make sure the Dockerfile is actually copying the files your application needs.</p><p>For example:</p><pre>COPY package*.json ./<br>RUN npm install<br>COPY src ./src</pre><p>If an important directory or configuration file is missing from the image, the application may fail even though the image builds successfully.</p><h3>2. Check the Compose configuration</h3><p>Look at your compose.yaml and verify:</p><ul><li>The correct service is being started</li><li>The correct port is exposed</li><li>Environment variables are available</li><li>Volumes are pointing to the correct locations</li><li>The build context is correct</li></ul><p>For example:</p><pre>services:<br>  app:<br>    build:<br>      context: .<br>    ports:<br>      - &quot;3000:3000&quot;</pre><p>A small configuration difference can completely change how your application behaves.</p><h3>3. Check the container logs</h3><p>If the container starts but your application doesn’t work, check the logs:</p><pre>docker compose logs</pre><p>For a specific service:</p><pre>docker compose logs app</pre><p>The logs often tell you whether the problem is related to:</p><ul><li>A missing dependency</li><li>An incorrect environment variable</li><li>A port configuration</li><li>A database connection</li><li>An application error</li><li>A command that failed during startup</li></ul><h3>4. Check whether your code is actually inside the image</h3><p>If you changed your application but the container still behaves like the old version, remember the image/container distinction.</p><p>Try:</p><pre>docker compose up --build</pre><p>If you suspect cached layers are causing the problem, you can test with:</p><pre>docker compose build --no-cache<br>docker compose up</pre><p>Don’t use --no-cache as the first solution every time. First understand <strong>why</strong> the existing image isn&#39;t reflecting your changes.</p><h3>5. Check whether a volume is overriding your files</h3><p>This is particularly important during development.</p><p>For example:</p><pre>volumes:<br>  - ./src:/app/src</pre><p>With a configuration like this, the container can be using files directly from your local machine instead of the files copied into the image.</p><p>So if something looks strange, don’t only look at the Dockerfile. Check the complete Compose configuration.</p><h3>6. Remember that every project is different</h3><p>Our example uses a small Node.js application to demonstrate the Docker workflow.</p><p>A real application might also contain:</p><pre>Node.js<br>    +<br>Database<br>    +<br>Redis<br>    +<br>Environment variables<br>    +<br>Background workers<br>    +<br>Multiple Compose services</pre><p>In those situations, docker compose build is still doing the same fundamental job — building images according to the configured build instructions — but the overall system becomes more complex.</p><p>The important skill is not memorizing one command.</p><p>It’s learning how to trace the flow:</p><p><strong>source code → build context → Dockerfile → image → container → application</strong></p><h3>Will Docker Compose Become More or Less Important in the Coming Years?</h3><p>This is a reasonable question if you’re learning Docker today:</p><blockquote><strong><em>“Is Docker Compose worth learning, or will it become less relevant in the future?”</em></strong></blockquote><p>There is no reliable way to predict exactly how the tooling landscape will look several years from now.</p><p>However, Docker Compose is designed around a problem that remains very practical: <strong>defining and running multi-container applications in a reproducible way.</strong></p><p>You may eventually work with more advanced tools such as Kubernetes, cloud container platforms, or CI/CD systems. But learning Compose still gives you useful foundations:</p><ul><li>Services</li><li>Containers</li><li>Images</li><li>Networks</li><li>Volumes</li><li>Environment configuration</li><li>Build configuration</li><li>Service dependencies</li></ul><p>The tools around container orchestration can change, but understanding how containerized applications are structured remains valuable.</p><p>So don’t learn Docker Compose because you expect one specific command to remain unchanged forever.</p><p>Learn it because it helps you understand <strong>how applications are packaged, connected, and run as containers.</strong></p><p>And that understanding can transfer to more advanced container and cloud environments later.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6710739a541c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>