<?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 Vikram Dadwal on Medium]]></title>
        <description><![CDATA[Stories by Vikram Dadwal on Medium]]></description>
        <link>https://medium.com/@vikram30capri?source=rss-b6774c57a576------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6B029HpafLI0bzTjb832wg.jpeg</url>
            <title>Stories by Vikram Dadwal on Medium</title>
            <link>https://medium.com/@vikram30capri?source=rss-b6774c57a576------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 06:34:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vikram30capri/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[When Ideas Begin to Build Themselves: A Story of AI‑Agent Engineering with Vibe Coding]]></title>
            <link>https://medium.com/@vikram30capri/when-ideas-begin-to-build-themselves-a-story-of-ai-agent-engineering-with-vibe-coding-fba86ff1beb8?source=rss-b6774c57a576------2</link>
            <guid isPermaLink="false">https://medium.com/p/fba86ff1beb8</guid>
            <dc:creator><![CDATA[Vikram Dadwal]]></dc:creator>
            <pubDate>Thu, 18 Dec 2025 20:14:59 GMT</pubDate>
            <atom:updated>2025-12-18T20:14:59.213Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MHD5mp7GyN3-u2Zb_LzA8w.png" /></figure><p>After more than 20 years in software industry, turning ideas into software isn’t new to me, it’s been my job, my craft, and, honestly, my muscle memory for decades. I’ve built systems from scratch, shipped products across cycles, and lived through every generation of engineering tooling.</p><p>But what struck me this time wasn’t <em>that</em> I could turn an idea into software, <br> it’s <strong>how differently the process felt</strong> with vibe coding.</p><p>I opened my editor with nothing more than a spark: a sketch of a UI in my head, the outline of an AI agent, and a curiosity about how two frontier models would behave under the same workload. No architecture diagrams. No boilerplate. No elaborate setup.</p><p>Yet within days, those loose ideas solidified into real, working systems: a responsive UI client, a fully functioning agent backend built on the new Microsoft Agent Framework, and an evaluation harness capable of stress‑testing both OpenAI 5.2 and Claude Opus 4.5. Not duct‑taped prototypes, but cohesive, end‑to‑end workflows ready for real evaluation.</p><p>That’s when I realized something fundamental is shifting in how software gets created.</p><blockquote>“Vibe coding isn’t just another productivity hack — it compresses the distance between <em>what if?</em> and <em>here it is.”</em></blockquote><p>This post walks through that shift, how an idea turned into a working prototype in few sessions, how two leading AI models approached the same task with dramatically different reasoning styles, and why vibe coding is emerging as a genuine <strong>force multiplier for modern engineering teams</strong>.</p><h3>From Blueprint to Breakthrough: Prototype Faster Than Ever</h3><p>Turning a rough idea into a working prototype used to be a multi‑week ritual. UI scaffolding, backend wiring, agent orchestration, evaluation harnesses, and the glue code no one admits they hate writing. You had to protect your enthusiasm long enough to survive the setup.</p><p>Vibe coding shattered that rhythm.</p><p>Instead of grinding through boilerplate, it felt like stepping into an operating room where a surgical team of AI assistants was already scrubbed in and waiting. I stayed focused on the core idea — the critical operation — while each AI “specialist” handled their part with quiet precision.</p><p>I described the UI, and the “UI specialist” rolled the tray over and assembled it.<br> I outlined the AI agent flow, and the “systems surgeon” stitched together the architecture.<br> I hinted at the tooling, and an “integration assistant” connected the endpoints.<br> I asked for evaluators, and the “analysis techs” had them ready before I finished the sentence.</p><p>It didn’t feel like coding. It felt like leading a highly skilled surgical team, where every assistant knows exactly when to step in — so you can stay focused on the vision rather than the mechanics.</p><blockquote>“But here’s the catch: Vibe coding accelerates the process, but it doesn’t replace judgment. An experienced developer’s mind is essential to guide these AI tools, validate their output, and ensure the code works in the real world. Without that guidance, precision can quickly turn into chaos.”</blockquote><p>Within days, the slowest part of the software lifecycle — the messy, foundational scaffolding — simply… disappeared. What remained was a functional prototype I could poke, validate, and iterate immediately.</p><blockquote><strong>“</strong>And to be clear: these AI coding tools aren’t producing airtight, production‑grade systems yet. They don’t replace rigorous engineering, testing, security, or performance hardening — <em>but for prototyping and early momentum, they’re unmatched.</em>”</blockquote><p>Vibe coding gives engineers something we’ve never really had before: the ability to turn raw intent into a live system before the idea fades.</p><h3>Designing My First AI Agents</h3><p>I wanted to explore the idea of <strong>autonomous agents that could diagnose and fix issues inside Windows Machine</strong> — the kind of problems that normally require an engineer to dive into logs, run commands, interpret outputs, plan next steps, and verify the fix. It’s a process full of branching logic and subtle decisions, and it’s perfect for an agent‑based design.</p><p>So, I framed the system as a <strong>team of specialists</strong>, each with a defined responsibility:</p><ul><li>an <strong>orchestrator agent</strong> that understood the overall context</li><li><strong>diagnostic agents</strong> that probed for issues</li><li><strong>remediation agents</strong> that executed targeted fixes</li><li>a shared execution layer tying all their observations and decisions together</li></ul><p>Vibe coding took that mental model and generated a backend that felt like watching an autonomous agents team come alive. Each agent followed an iterative loop — <strong>observe → interpret → plan → act → verify</strong> — handing off insights the way medical specialists coordinate during a complex procedure.</p><p>The emergent behavior was mesmerizing. Agents weren’t acting blindly; they were refining their understanding with every step. One would detect a signal, another would confirm it, a third would attempt a fix, and the orchestrator would oversee the entire flow, deciding what needed to happen next. Depending on whether OpenAI 5.2 or Claude Opus 4.5 was powering the reasoning, these loops took on different personalities: one more surgical and execution‑driven, the other more reflective and analytical.</p><h3><strong>Two Minds, One System: How OpenAI 5.2 and Claude Opus 4.5 Think Under Pressure</strong></h3><p>Once the agent backend came alive, I dropped both models into the exact same environment — same prompt, same tools, same orchestration logic, same constraints. The question was simple: <em>How do two frontier models behave when asked to solve the exact same problem?</em></p><p>What emerged wasn’t just output. It was two distinct engineering personalities operating within the same system, shaped by how each model interprets state, evaluates options, and decides when to act.</p><p>To make the comparison meaningful, I ran <strong>multiple evaluation passes across varied scenarios</strong> — clean states, degraded windows machine states, injected faults, branching diagnostic paths, ambiguous signals, and multi‑step remediation sequences. I wanted to see not just how they handled the “happy path,” but how they behaved under stress, uncertainty, and diverging execution trails. These repeated runs helped surface consistent patterns in reasoning depth, tool‑use style, latency, and planning discipline.</p><h4><strong>OpenAI 5.2 — </strong>The Decisive Operator</h4><p>OpenAI 5.2 tended to operate in a concise, execution‑first style. It kept its reasoning compact and moved through tool calls quickly, focusing on getting to the next action rather than elaborating on every step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dvcv7glbbVdF0bpf_aVdeQ.gif" /><figcaption>Agent Prototype using Open AI 5.2</figcaption></figure><p><strong>Its behavior was consistently:</strong></p><ul><li>Minimal chain‑of‑thought verbosity</li><li>Extremely short pre‑execution reasoning</li><li>Fast, decisive tool calls</li><li>Predictable execution patterns</li><li>Low cognitive overhead, which kept multi-agent latency tight</li></ul><p><strong>OpenAI 5.2 fits beautifully when:</strong></p><ul><li>You want action over explanation</li><li>The workflow is procedural or tool‑heavy</li><li>Predictability matters</li><li>You want the agent to “just do the thing” without slowing the pipeline</li></ul><p>It often felt less like collaborating with an LLM and more like issuing instructions to a highly trained operator who prioritizes execution over reflection.</p><h4><strong>Claude Opus 4.5 — </strong>The Analytical Strategist</h4><p>Claude Opus 4.5 approached the evaluation runs with a very different rhythm. It reasoned more, explained more, and made its intentions transparent before taking action. The deeper the scenario complexity, the more its analytical nature stood out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9kOKZj0MzbFb3odyd3Fe5Q.gif" /><figcaption>Agent Prototype using Claude Opus 4.5</figcaption></figure><p><strong>Its behavior was marked by:</strong></p><ul><li>Rich, structured reasoning before actions</li><li>Layered, step‑by‑step decomposition</li><li>Detailed “thinking out loud” traces</li><li>High interpretability and transparency</li><li>A pace that was slower but deeply deliberate</li></ul><p><strong>Claude Opus 4.5 shines when:</strong></p><ul><li>You want to see the cognitive process</li><li>Debuggability matters (especially in multi‑agent systems)</li><li>You’re tackling ambiguous or multi‑step problems</li><li>The agent’s reasoning needs to be auditable</li></ul><p>It didn’t feel like using a model — it felt like collaborating with a colleague who wants to walk you through their entire plan before touching the system.</p><p><strong>Two Philosophies, One Architecture</strong></p><p>Even though both models ran through the same agent pipeline, they produced noticeably different rhythms:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*frFl2nDRZeevkgZUyYD3dg.png" /><figcaption>My evaluation observations (informal, not official metrics)</figcaption></figure><p>Watching the side‑by‑side runs was almost cinematic, like observing two pilots fly the same aircraft using completely different philosophies. One relied on instinct and efficiency. The other relied on analysis and deliberation, but both were useful… depending on the mission.</p><h3><strong>A New Engineering Discipline Is Emerging</strong></h3><p>If traditional development has always been the craft of assembly, stitching frameworks, wiring components, laying down structure. But now in this new era engineers aren’t just writing code; they are directing intelligent collaborators. Systems don’t just run; they co‑evolve with the models powering them. Prototypes aren’t static demos; they become living experiments, constantly shaped by reasoning, action, and feedback loops.</p><blockquote>“In this world, architecture isn’t a document. It’s something you validate with a running system on day one and vibe coding becomes the conductive medium that allows ideas to flow into implementation without losing momentum or clarity.”</blockquote><p>What this workflow unlocked for me wasn’t just speed — it was a new rhythm. A rhythm where ideas don’t wait for sprints, where prototypes surface while the excitement is still fresh, and where risk drops because feedback arrives before decisions harden. Vibe coding creates an environment where momentum carries straight from intention to implementation, letting engineers stay immersed in the flow instead of getting slowed down by setup, scaffolding, or mechanical tasks.</p><p>Using the vibe coding collapses the entire path from:</p><p>Idea → Prototype → Feedback → Direction</p><p>into a single fluid motion.</p><p>This isn’t about replacing engineering judgment; it’s about amplifying it. The future of engineering belongs to those who can move from intent to execution without friction, letting intelligent systems build alongside them, not after them.</p><p>And with AI tools like VS Code and GitHub Copilot accelerating code to the speed of thought, that future doesn’t feel theoretical anymore — it’s already underway.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fba86ff1beb8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Run Batch Job In Container: Azure Container Instances]]></title>
            <link>https://medium.com/@vikram30capri/run-batch-job-in-container-azure-container-instances-9bd4f398439a?source=rss-b6774c57a576------2</link>
            <guid isPermaLink="false">https://medium.com/p/9bd4f398439a</guid>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[azure-functions]]></category>
            <category><![CDATA[azure-container-instances]]></category>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Vikram Dadwal]]></dc:creator>
            <pubDate>Fri, 09 Oct 2020 19:08:47 GMT</pubDate>
            <atom:updated>2020-10-09T19:17:02.423Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*pYqM5Vg2L7zRtEbZtwFsZw.png" /><figcaption>Azure Container Instances</figcaption></figure><p>I spend a lot of time building server-less event driven applications with Azure technology stack, primarily using <strong>Azure Function</strong> and <strong>Azure Logic App</strong> and I would say they really provided the right platform for our team to leverage the cloud server-less power.</p><p>But recently we had a requirement to run a long job (basically it was collecting telemetry data from various azure resources and then generating some useful insights), we first thought of using Azure Function, but then we realize the 10 min limitation with <strong>Consumption plan</strong>, and our job was taking approx. 20 min to complete the job (Also we were expecting more azure resource in the future, so we require our design to scale easily). Then we looked into the Azure Function <strong>Premium plan</strong>, but that has cost associated with warm nodes as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4WRGp5CECD6JaTHtE_369w.png" /><figcaption>Azure Function Premium plan cost (Monthly)</figcaption></figure><p>There is one more option with azure function, which is <strong>Durable Functions</strong>, but we do not want the complexity of Orchestration part, so we dropped that option.</p><p>At last we looked into a very different service, which was an offering from Azure, to run containers on demand, known as <strong>Azure Container Instances</strong>. So we started exploring this option and finally concluded that this will exactly fit with our requirements. The following Use Cases are mentioned in Azure Official <a href="https://azure.microsoft.com/en-us/services/container-instances/#features">page </a>of ACI:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*ErHSa5FSLmtmJ2c-x4R3Fg.png" /><figcaption>Use Cases</figcaption></figure><p>The following snapshot talks about the pros and cons for each option we explored:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*UNGaiBvNnqRuz28dG4IJtg.png" /></figure><p><strong>Cost Analysis of Azure Container Instances (ACI):</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kvE27ouQMFNPRUQqkGb14g.png" /><figcaption>Azure Container Instances Cost (Monthly)</figcaption></figure><h3>Implementation</h3><ol><li>Create a new console .NET Core project</li><li>Added my logic to generate insights</li><li>For Docker Support, Visual Studio provides a easy option as shown below:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*GCeEVOyrPwSvrnopAijamA.png" /><figcaption>Right Click Project to Enable Docker Support</figcaption></figure><p>4. It will provide you an option to choose Target OS, I selected Linux (There are some reason for Linux here, some ACI features like Managed Identity is only available with Linux at the time when I built this solution, also Linux Image is very fast to load and start)</p><p>5. A docker file will be generated with following (only partial content shown):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*IWsEMI2G6VMrW9zg2Z41OQ.png" /><figcaption>Docker File</figcaption></figure><p>6. For storing the Docker Image, I used <strong>Azure Container Registry (ACR) </strong>service.</p><p>7. To setup ACR, create a ACR resource in Azure.</p><p>8. To push the image, I used DevOps pipeline to build image file and then push in ACR. To enable that, create SPN (Service Principals) and provide the <strong>AcrPush </strong>RBAC Role in the ACR as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8bzvjPLjZ38NUpkdLdSsug.png" /><figcaption>Assign AcrPush Role to SPN</figcaption></figure><p>9. In Azure DevOps create a Build Definition, which will contain the following steps:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*R_SxvcnALbsYlK1FxGzgSA.png" /></figure><p>a. First step is to build the image file. There is already an inbuild task to do the same as shown above.</p><p>b. To push the image I used Azure CLI (Reason was at the time of build, there was no task which used SPN to push the image). Following CLI was used to push the image:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*3Lo-_-8qCf_2glfQXYETfw.png" /><figcaption>CLI</figcaption></figure><p>10. For execution the idea was to setup a scheduler, which will create Azure Container Group and run the Container and then die, i.e. No resource footprints. So for the Scheduler I used Azure Logic App, which did the job of Creating the ACG and run it at a given scheduled time. For a detailed implementation please refer to this official example from Microsoft:</p><p><a href="https://github.com/Azure-Samples/aci-logicapps-integration">Azure-Samples/aci-logicapps-integration</a></p><p>11. To access the Key vault in the code, I used the Managed Identity (User Assigned). In the above Logic App, there is an option to assign MI with Creation of Azure Container Group, which can be leveraged here. Following are the key Features of Azure MI:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*KarfsSuHfKQjnPnk1hxDwQ.png" /><figcaption>Managed Identity Key Features</figcaption></figure><p>12. Currently there is one issue with MI, when the ACG is created dynamically, i.e. it take some time for the MI to linked with ACG, to overcome that problem you need to put some wait time at program start before accessing KV using MI as shown:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*ZozVnVkuWl7YqFWFAZSlZQ.png" /><figcaption>Wait time at the application startup</figcaption></figure><p>13. We are ready to execute the Logic App now. You will notice that when the logic app runs, it creates a ACI resource on the fly and once the job is done, it deletes the ACI.</p><h3>Security considerations</h3><p>Adhere to the following Security Recommendations</p><p>•Use base container images from trusted source (e.g. Microsoft Container Registry (MCR))</p><p>•Use SPN to push and pull the container images from Azure Container Registry. Use RBAC role “AcrPush” for the SPN. This will ensure that images are pushed and pulled by trusted identity only</p><p>•Create lifecycle management to update the image if any patch is available for any base image (We are doing it using CI/CD, which runs everyday and build the image from latest base image).</p><p>•Use managed identity within the ACI to access azure resources.</p><p>•ACI provides Hyper-V isolation for containers out of the box (<a href="https://www.youtube.com/watch?v=giQLmxMKAKE&amp;t=125s">https://www.youtube.com/watch?v=giQLmxMKAKE&amp;t=125s</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/462/1*2xb5XToBhY5Q6NKAVz9aaQ.png" /><figcaption>ACI Hyper-V Isolation</figcaption></figure><h3>Conclusion</h3><p>Azure Container Instances service is one of the prime Azure service where developers can focus on <strong>deploy and manage applications, not infrastructure</strong>.</p><p>Developers can still build old style basic applications like in this case I build a simple console .NET core app (which I think <strong>reduce the dev dependencies on a specific cloud platform</strong>, which is a big advantage). Also the cost of server-less platform does make sense to go forward with this model of native cloud applications.</p><p>Also, the out of box Hyper-V isolation of ACI make it secure by design. You only interact with and pay for your containers, and you avoid the operational overhead of scaling, patching, securing, and managing servers.</p><blockquote><em>Happy Coding, Go grab your Container !!!</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9bd4f398439a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Micro-services with Containers — Embracing Cloud Native Development (Microsoft Azure)]]></title>
            <link>https://medium.com/@vikram30capri/micro-services-with-containers-embracing-cloud-native-development-microsoft-azure-d29ae3f0c2ad?source=rss-b6774c57a576------2</link>
            <guid isPermaLink="false">https://medium.com/p/d29ae3f0c2ad</guid>
            <category><![CDATA[azure-service-fabric]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Vikram Dadwal]]></dc:creator>
            <pubDate>Sun, 03 Mar 2019 06:43:20 GMT</pubDate>
            <atom:updated>2019-03-18T01:16:21.240Z</atom:updated>
            <content:encoded><![CDATA[<h3>Embracing Cloud Native Development (using Containers) with Microsoft Azure</h3><p>The adoption of <strong>Cloud technologies</strong> by many enterprises are defining a new paradigm on how software should be built. It is pushing boundaries for every software service to be on demand, intelligent e.g. self-service, zero touch provisioning, self-healing, auto scaling and real time analytics. With today&#39;s “experiment-and-explore” business model, the Line of business applications release cycles are outpaced by software requirement changes.</p><p>Also, with cloud adoption, one new term is introduced for building applications<strong>, Cloud-native</strong> development process. The definition of cloud native says “Cloud-native is an approach to building and running applications that exploits the advantages of the cloud computing delivery model. Cloud-native is about how applications are created and deployed, not where” and that’s where Containers, Microservices, Orchestraters becomes an essential ingredient of cloud native.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*y-lSxDHNEpUa7CImFFgyXg.png" /></figure><p>In my organization, we faced similar challenges while building many of our core business processes, and that’s where we shift are mindsets to adopt a strategy of decomposing our monolithic application design into discrete micro-services and shift our focus on building applications that are align to cloud computing so that we can leverage the maximum functionality and services of a cloud computing and its (Container) virtualization infrastructure. This document describes the important ingredient for building cloud native applications that includes Microservices, Containers, Orchastraters and DevOps.</p><h3>Decision tree for Azure compute services</h3><p>Before jumping to more detailed explanation of each ingredient for building native cloud applications, lets take a glance on what Microsoft Azure cloud platform offer and where exactly the native cloud development can be seen in the decision tree for various Azure compute services offering.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ElDssKNrJ9DTqRkEvf4j_Q.png" /></figure><p>As can be seen in the decision tree above, Microsoft Azure provides a robust set of services to build native cloud applications using containers.</p><h3>Microservices Architecture</h3><p>Simply A <strong>microservice</strong> is a component (software) which has its own configuration, code and data store. Let’s take an example of an eCommerce site which has many features on its website i.e. searching products, listing products, orders, cart etc. Each of this feature is served by a separate service which is coded separately i.e. has its own database and code set. Following are the benefits of separating the website into separate microservice/component:</p><p>· <strong>Scalability</strong>: Each service scales independently and on demand</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*WMazmvyK3bofgrgOsG9Rqw.png" /></figure><p>· <strong>Agility</strong>: Each service can be changed independently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*_xMQV4eVmm4wK7Ayj8_eFw.png" /></figure><p>· <strong>Development</strong>: Each service can be developed in a different programming language. The integration happens via defined API.</p><p>· <strong>Maintenance</strong>: Small pieces of source code which is managed by various small teams.</p><p>The LOB applications these days have lots of requirement changes coming very frequently, they have frequent needs to scale based on demand. Also maintaining a big single codebase is a nightmare for developers. Microservices help the developers to reduce these pains. Here in our organization we are using Microsoft Azure Service Fabric service platform to build microservices.</p><h3>Containers : The essential ingredient</h3><p>By implementing Azure Service fabric (plain process model) based microservices we were close to cloud-native development process, but still we were not leveraging the full power of cloud, as plain process models (standard virtual machines (VMs)) were less efficient and slow compare to containers which provides operating system (OS)-level virtualization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*pUpiqAcXHWy5bBk4fzrklw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*HL1x3TQVFa5DUjglvChlNA.png" /></figure><p><strong>Containers provide a standard way to package application code, configuration and dependencies into a single unit called Container which has a ability to run with a strictly defined subset of operating system resources and fully isolated from other container applications and from the operating system</strong>. Docker (A company) has made this complex technology available to developer community and Docker now run in most cloud environments, including Azure.</p><p>Containers exhibits the following benefits:</p><p>· <strong>Fast to deploy</strong>: No OS to boot i.e. Applications online in seconds (This is very important in microservices orchestration which supports high availability, Rolling upgrades, self-healing)</p><p>· <strong>Portable -Build once, configure once, run anywhere</strong>: Less dependencies between the process layers i.e. ability to move between infrastructure. E.g. Once the image is created, it deployed easily and consistently, regardless of whether the target environment is a private data center, the public cloud, or even a developer’s personal laptop.</p><p>· <strong>Efficiency</strong>: Less OS overhead, very lightweight that eventually improves VM density or more containers per hardware unit to lower infrastructure cost.</p><p>· <strong>Strong degree of Isolation</strong>: Containers create an isolation boundary at the application level rather than at the server level. This isolation means that if anything goes wrong in that single container (e.g., excessive consumption of resources by a process) it only affects that individual container and not the whole VM or whole server.</p><p>· <strong>Reduce footprint (vs. VMs)</strong></p><h3>Why Containers for microservices?</h3><p><strong>Fits well with Microservice Architecture</strong>: Containers are commonly used in conjunction with a microservices architecture as it exhibits the following characteristics of microservices:</p><p>· <strong>Single Responsibility</strong>: Single, self-contained, autonomous, isolated</p><p>· <strong>Start up quickly</strong>. Microservices can scale much quicker if they can boot new instances in a few microseconds.</p><p>· <strong>Have a small image size</strong>. As Containers are lightweight and have a smaller footprint in terms of on-disk size can be distributed to nodes much quicker. This can significantly reduce start-up time.</p><p>· <strong>Have a small memory &amp; CPU footprint</strong> (No virtualization overhead). Containers have small footprint, so containers can fit on a node, making it cheaper to run and easier to scale.</p><h3>Microsoft Container Orchestration Platforms</h3><p>Doing anything at scale demands automation. There are no way developers can individually manage tens or hundreds of nodes and hundreds or thousands of containers. This is where the Container orchestrator platforms comes into picture. The task of automating and managing a large number of containers and how they interact is known as <em>orchestration</em>. Orchestrator has the following characteristics:</p><p>· <em>Simplifies Containers deployment</em>.</p><p>· <em>Better hardware utilization</em> i.e. Orchestrator choose the most appropriate node to run the container.</p><p>· <em>Health monitoring</em></p><p>· <em>Self-healing capabilities</em> (Fault tolerance/High Availability). In the unfortunate event that a node dies or become inaccessible, the orchestrator will select the new nodes for all the containers that were running on the node and run them on the newly selected nodes.</p><p>· <em>Automatic scaling</em> i.e. Orchestrator can auto scale the service by simply spin up of additional nodes or containers.</p><p>· <em>Service discovery</em></p><p>Microsoft Azure provides the following two products for Container orchestration for Container microservices:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3IGmRZF5vPdZoZB618-iXg.png" /></figure><p>In our organization, most of the LOB services are built with .Net technology stack so to make the right choice was simple for us i.e. Service Fabric as it was a mature model for Microsoft ecosystem. Also, when Service Fabric team decided to release fully managed server-less service aka Azure Service Fabric Mesh (Codename “SeaBreeze”), which Azure Kubernetes does not provide today (Only Master node is managed by Azure, workers nodes are still the responsibility of developers), we finally went with Azure Service Fabric.</p><h3>Service Fabric Mesh (Serverless)</h3><p>We started our Microservice journey with Azure Service Fabric Cluster and started hosting container based services on the Cluster, but transitioning from Azure Web App platform to service Fabric Cluster also lead to some overheads of managing the cluster by the Application developers. Though this gives you more control on the Cluster, but it also leads to more responsibility on the developers to mange it. As an application developer we always felt a need to shift management of Cluster to Azure and the good news come with the release of Azure Service Fabric Mesh (Serverless) public preview which abstract away the machine management aspect of the container orchestrator. Following diagram help organizations to make a choice between the various orchestration model provided within Microsoft Azure Service Fabric:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*YqNMIwU0e5AbOZVp4DUkuw.png" /></figure><p>Azure Service Fabric Mesh is a fully managed service which enables developers to build and deploy microservices (containers) without managing any infrastructure. Developers needs to take care about the health and responsiveness of the application, not the infrastructure.</p><h3>Development Life-cycle (With Containers)</h3><h3>Programming Framework</h3><p>We already had LOB applications components which were built in .NET Framework. So we started Containerizing these apps though that’s not the best option to go for as the Container image that will be build using .NET framework will be large in size which defeat the very purpose of the containers which are meant to be lightweight and should have less resource usage footprints.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*Iq2xmbH0MsTTO41EuA5dnw.png" /></figure><p>But for the new services we choose .NET Core because the modularity and lightweight nature of .NET core makes it prefect for containers. .NET Framework for a container should have a base image on the Windows Server Core image, which is lot heavier than the Windows Nano Server or Linux images that can be used for .NET Core applications.</p><h3>Containers Image Registry</h3><p>As Azure was our choice of deployment, it makes sense for us to use Azure Container Registry. Azure Container registry provides a secure way to host container image repositories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Idu8OT4eCPNbHjec_pRDyw.png" /></figure><p>With some out of the box features like Geo-Replication of Image Repositories, Signed Image provision and a very good CI/CD support using Microsoft DevOps really helped us to leverage the Container technology in a fast and secure way.</p><h3>Continues Integration and Deployment (DevOps)</h3><p>Adopting Containers based deployments made our CI/CD story very simple and clean. Microsoft DevOps provides extensive support for Containers based build and release components (A sample build definition shown below). As shown only two steps are required:</p><p>· Build the image using docker file</p><p>· Push the image into Azure Container Registry</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*DRCgvYu30E7P5xMhhRrrDA.png" /></figure><p>Microsoft DevOps Dashboard feature provides a 360-degree view of your microservice CI/CD pipeline health. This gives opportunity to the teams to pro-actively find any deployment issues and react quickly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7geKhPMXGN_cms7s0EFhzg.png" /></figure><p>The Dashboard feature of DevOps is very useful as it provides a quick insight of each micro service from a continues integration point of view which is very important as there could be large number of micro services.</p><p>Also releasing to Azure Service Fabric Mesh is a piece of cake, though currently its in Public Preview mode (So more exciting feature are yet to come), it provides a ARM template deployment (Remember we talked about “Infrastructure as Code” in the start), which gives a flexible way to deploy the containers to Azure Service Mesh.</p><p><strong>Local Dev Tooling Support</strong></p><p>Following shows how developer can deploy the containers directly from their laptops to Azure Service Fabric Mesh:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*4J8VDbkaaEGvj8bG8SKdoQ.png" /></figure><p>The local development tools for Containers have really matured now. Developers can use Docker for Windows for the local container image build and can also run the container. Visual Studio 2017 have new features added to support Docker based projects, which makes the development fast (Visual Studio 2019 will support some more exciting feature for containers).</p><h3>Containers teaching us DevOps</h3><p>Before wrapping up let’s touch upon a very important cultural shift we are going through with the adoption of native cloud services development process, <strong>DevOps</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*aK_7JzifAHTuqMHXCwCO3Q.png" /></figure><p>Traditional software delivery process included two teams i.e. Development team who created the software and once finished the code will handover to Operations team which then do some infrastructure and configuration changes to ready the software for production deployment. This approach always leads to confusion and resulted in poor quality of software in production as environment configuration or file system differs, which lead to issues. To fix these issues, DevOps comes for rescue.</p><p><strong>What is DevOps?</strong></p><p>There is no single line definition of DevOps here as it is not a single principle definition, instead it’s a collaboration of several principles which are:</p><p>· <em>DevOps is development and operations collaboration</em></p><p>o This leads to common understanding between various team members of a software team.</p><p>· <em>DevOps is using automation</em> (e.g. Infrastructure as code)</p><p>o This provided a great and most powerful benefit, as now developers can change the Infra demands by changing few lines of code (The important point here is that software that are hosted in PaaS made this possible e.g. Azure provides various tools to Automate the entire infrastructure that is needed by a software)</p><p>o This gives the power to the developers to recreate the same environment in a matter of minutes.</p><p>· <em>DevOps is small and quick deployment</em> (e.g. Microservices deployment)</p><p>o This leads to quick release of features to the end user without affecting the other pieces of the software.</p><p>o Services can be scaled independently without wasting resources of cloud (Cost benefits).</p><p>· <em>DevOps is feature switches</em></p><p>· <em>DevOps is Develop and test in an environment like production </em>(i.e. every environment is PROD environment)</p><p>o Using containers made this possible</p><p>· <em>DevOps is collecting quick feedbacks from running software</em> (This leads to end user satisfaction and continues software quality improvement)</p><h3>Conclusions</h3><p>In this article, we have looked at leveraging Microsoft Azure Services which can be used in conjunction with Containers for building cloud native Microservices (which also boost DevOps).</p><p><strong>Containers</strong> helps in distribute an application between teams’ members for various environments during the development process. Once the same image pass through the testing phase, can be deployed to production with confidence i.e. where to deploy is abstracted here, it just doesn’t matter. Also, it’s an ideal choice for cloud-native development as it reduces the Virtual Machine overhead.</p><p><strong>Microservices</strong> helps developers to focus on implementing a portable, maintainable, resilient components that can quickly adapt to new market demands/requirements.</p><p>At last, to run a system composed of Microservices running in Containers, a Container <strong>orchestration</strong> solution is needed to help manage the Microservices. <strong>Azure Service Fabric (Mesh)</strong> is really a good choice here as its fully managed serverless orchestration solution (GA would be available soon in 2019).</p><p>Microsoft Azure has done a great job on providing the right platform for hosting Container based Microservices and empower the application developers to build cloud-native applications and be successful in delivering the business value to the end customers and put focus on delivering the new, ever changing business requirements in a <strong>cost-effective</strong> way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d29ae3f0c2ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>