<?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 Raju Yelisi on Medium]]></title>
        <description><![CDATA[Stories by Raju Yelisi on Medium]]></description>
        <link>https://medium.com/@RajuYelisi?source=rss-5fa3ea2fd2e7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Raju Yelisi on Medium</title>
            <link>https://medium.com/@RajuYelisi?source=rss-5fa3ea2fd2e7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 16:01:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@RajuYelisi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[From Azure Durable Functions to Temporal: What Changes and Why It Matters]]></title>
            <link>https://medium.com/@RajuYelisi/from-azure-durable-functions-to-temporal-what-changes-and-why-it-matters-26b81ce8eaa2?source=rss-5fa3ea2fd2e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/26b81ce8eaa2</guid>
            <category><![CDATA[durable]]></category>
            <category><![CDATA[temporary]]></category>
            <dc:creator><![CDATA[Raju Yelisi]]></dc:creator>
            <pubDate>Mon, 27 Apr 2026 12:57:33 GMT</pubDate>
            <atom:updated>2026-04-27T12:57:33.990Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve worked on distributed systems, you’ve likely faced this situation:</p><p>A process starts successfully…<br> It runs for a few minutes (or hours)…<br> And then something fails in the middle.</p><p>Now you’re left wondering:</p><ul><li>Should I retry from the beginning?</li><li>What state did I lose?</li><li>How do I make this reliable?</li></ul><p>This is exactly where workflow orchestration tools come into play.</p><p>Two popular approaches in this space are <strong>Azure Durable Functions</strong> and <strong>Temporal</strong>.</p><p>In this article, we’ll break down:</p><ul><li>What Temporal workflows are</li><li>How they differ from Durable Functions</li><li>How to set up Temporal locally</li><li>And a practical example using a client + worker application</li></ul><h3>What Are Temporal Workflows?</h3><p>At its core, a <strong>workflow</strong> is just a sequence of steps written in code.</p><p>But here’s the difference:</p><p>With Temporal, your workflow is not just executed…<br> It is <strong>managed, persisted, and made fault-tolerant automatically</strong>.</p><p>That means:</p><ul><li>If your service crashes → it resumes</li><li>If a step fails → it retries automatically</li><li>If it takes hours/days → state is preserved</li></ul><p>👉 In simple terms:</p><blockquote><em>Temporal allows you to write normal code that behaves like a reliable distributed system.</em></blockquote><h3>“Wait… Isn’t This Already in Durable Functions?”</h3><p>At this point, if you’ve worked with <strong>Azure Durable Functions</strong>, you might be thinking:</p><blockquote><em>“Durable Functions already gives me retries, state management, and orchestration…<br> So what’s actually new here?”</em></blockquote><p>That’s a fair question.</p><p>Because on the surface, both Durable Functions and <strong>Temporal</strong> seem to solve the same problem:</p><ul><li>Long-running workflows</li><li>Reliable execution</li><li>Automatic retries</li></ul><p>So why would someone choose Temporal?</p><p>The difference isn’t in <em>what</em> they do…<br> It’s in <em>how much control and flexibility you get while doing it.</em></p><h3>Temporal vs Azure Durable Functions</h3><p>If you’re coming from Durable Functions, this comparison will help you quickly map concepts:</p><pre>| Feature          | Temporal                             | Durable Functions        |<br>| ---------------- | ------------------------------------ | ------------------------ |<br>| Hosting          | Self-hosted or managed cloud         | Fully Azure-managed      |<br>| State Management | Built-in (event sourcing)            | Azure Storage            |<br>| Language Support | Multiple SDKs (.NET, Java, Go, etc.) | Mostly .NET, JavaScript  |<br>| Vendor Lock-in   | Low                                  | High                     |<br>| Execution Model  | Workers poll tasks                   | Azure triggers execution |<br>| Control          | Full control                         | Abstracted               |</pre><h3>Key Insight</h3><ul><li><strong>Durable Functions</strong> is great when you’re already deep into Azure and want quick setup.</li><li><strong>Temporal</strong> shines when you need:</li><li>More control</li><li>Better scalability</li><li>Long-running and complex workflow</li></ul><h3>Temporal Architecture (Simplified)</h3><p>To understand Temporal, you only need to remember four components:</p><h3>1. Workflow</h3><p>Defines the orchestration logic (the “brain”).</p><h3>2. Activities</h3><p>These are actual tasks:</p><ul><li>API calls</li><li>Database operations</li><li>External service interactions</li></ul><h3>3. Worker</h3><p>Executes workflows and activities.</p><h3>4. Temporal Server</h3><p>Handles:</p><ul><li>State persistence</li><li>Task scheduling</li><li>Retry logic</li></ul><p>👉 Think of it like this:</p><ul><li>Workflow = Plan</li><li>Activities = Work</li><li>Worker = Executor</li><li>Server = Coordinator</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26b81ce8eaa2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Azure Alert Mechanism — Why It Matters More Than You Think]]></title>
            <link>https://medium.com/@RajuYelisi/azure-alert-mechanism-why-it-matters-more-than-you-think-2e674f55071e?source=rss-5fa3ea2fd2e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e674f55071e</guid>
            <category><![CDATA[alerts]]></category>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Raju Yelisi]]></dc:creator>
            <pubDate>Tue, 31 Mar 2026 17:06:01 GMT</pubDate>
            <atom:updated>2026-03-31T17:06:01.287Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve worked on production systems, you already know this story:</p><p>It’s 2:00 AM.<br> Your phone rings.</p><p>Someone says:<br> <em>“Hey, the system is down.”</em></p><p>And your first thought is:<br> <em>“Since when???”</em></p><p>That one question explains the importance of alerts.</p><p>Because good alerting doesn’t just tell you <em>something is wrong</em>…<br> It tells you <strong>before it becomes a disaster</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GEu960FCB1FNFEuvpHPEUw.png" /></figure><h3>What Are Azure Alerts? (Quick Introduction)</h3><p>In <strong>Microsoft Azure</strong>, alerts are a way to <strong>continuously monitor your resources and automatically notify or act when something crosses a defined threshold</strong>.</p><p>Instead of manually checking dashboards, Azure lets you define rules like:</p><ul><li>Notify me if CPU goes above 80%</li><li>Trigger an action if response time increases</li><li>Alert me when failures cross a limit</li></ul><p>An alert in Azure is essentially made up of:</p><ul><li><strong>A signal</strong> (metric or log data)</li><li><strong>A condition</strong> (the rule you define)</li><li><strong>An action</strong> (what happens when triggered)</li></ul><p>In simple terms:<br> <strong>If something happens → Azure detects it → Azure notifies or reacts.</strong></p><h3>Why Do We Use Alerts?</h3><p>Here’s why alerts are essential in modern cloud systems:</p><h3>1. Proactive Monitoring</h3><p>Instead of waiting for failures, alerts notify you when something is <em>about to go wrong</em>.</p><p>Example:</p><ul><li>CPU &gt; 80% for 5 minutes</li><li>Memory usage continuously increasing</li></ul><h3>2. Faster Incident Response</h3><p>Alerts reduce detection time.</p><p>Without alerts:</p><blockquote><em>Issue → User complains → You investigate</em></blockquote><p>With alerts:</p><blockquote><em>Issue → Alert triggers → You act immediately</em></blockquote><h3>3. Automation Opportunities</h3><p>Alerts can trigger actions like:</p><ul><li>Sending emails / SMS</li><li>Calling a webhook</li><li>Triggering an Azure Function</li></ul><h3>4. Better Reliability &amp; SLA</h3><p>If you’re working with production systems, alerts help maintain:</p><ul><li>uptime</li><li>performance</li><li>user trust</li></ul><h3>How Azure Alerting Works (High-Level)</h3><p>In <strong>Microsoft Azure</strong>, alerts typically involve:</p><ol><li><strong>Resource</strong> (e.g., App Service, VM, SQL Database)</li><li><strong>Condition</strong> (what to monitor)</li><li><strong>Action Group</strong> (what to do when triggered)</li></ol><h3>Configuration Walkthrough</h3><p>Let’s walk through the important parts.</p><h3>1. Adding a Condition</h3><p>This is where you define <strong>WHEN the alert should fire</strong>.</p><h3>Common Signal Types:</h3><ul><li><strong>Metrics</strong> (CPU %, Memory, Requests, DTU, etc.)</li><li><strong>Logs</strong> (from Log Analytics / Application Insights)</li></ul><h3>Example:</h3><ul><li>Resource: App Service</li><li>Condition:</li><li>CPU Percentage &gt; 80%</li><li>Time Aggregation: 5 minutes</li></ul><p>This means:</p><blockquote><em>“Trigger an alert if CPU stays above 80% for 5 minutes”</em></blockquote><h3>Things to Configure:</h3><ul><li>Threshold value</li><li>Operator (&gt;, &lt;, =)</li><li>Aggregation type (Average, Max, Total)</li><li>Evaluation period</li></ul><p>Tip:<br> Avoid setting thresholds too sensitive — otherwise you’ll get <strong>alert fatigue</strong>.</p><h3>Action Group</h3><p>Once the condition is met, <strong>what should happen?</strong><br> That’s where Action Groups come in.</p><h3>You can configure:</h3><h4>Notifications:</h4><ul><li>Email</li><li>SMS</li><li>Push Notifications</li><li>Voice calls</li></ul><h4>Actions:</h4><ul><li>Trigger <strong>Azure Functions</strong></li><li>Call a <strong>Webhook</strong></li><li>Send to <strong>Logic Apps</strong></li><li>Trigger <strong>Automation Runbooks</strong></li></ul><h3>Real-World Scenario</h3><p>Let’s say you have a production API:</p><p><strong>Condition:</strong></p><ul><li>Response time &gt; 2 seconds for 10 minutes</li></ul><p><strong>Action Group:</strong></p><ul><li>Email Dev Team</li><li>Trigger Azure Function to scale up instances</li></ul><p>Result:</p><ul><li>Users might never even notice the issue</li></ul><h3><strong>Steps to Create a Alert Rule:</strong></h3><ol><li>Navigate to the <strong>Monitor</strong> section in Azure and select <strong>Alerts</strong>, then click <strong>Create</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hNkN6SWXyipofX5URJZbyQ.png" /></figure><p>2. <strong>Select Scope</strong><br> Choose the resource you want to monitor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w2UJedqIBzLx0PAfPFoofQ.png" /></figure><p>3. <strong>Configure Condition</strong><br> Define the metric or log-based rule for the alert.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dsl4g0U7lHmBVLzMFWvTtw.png" /></figure><p>4. <strong>Assign Action Group</strong><br> Select an existing action group or create a new one.<br> (You can follow the steps below section to create one.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*NNNXrlGCACZOet_pTg_Wdw.png" /></figure><p>5. <strong>Define Alert Details</strong><br> Set severity, provide a meaningful name, and add a description.<br> Then click <strong>Create</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*rdeQ23-x0dy_Xm4dNOz9xw.png" /></figure><h3><strong>Follow below steps to create action group:</strong></h3><ol><li>We create the action group separately or while creating the alert. Provide the necessary details as below :</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*h8XsBlQ0PnNgMm9ToLJbJg.png" /></figure><p>2. In the notification section provide the details that you want to send notification medium, then save it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PZY0ouki3-w7qTNuRVco0g.png" /></figure><h3>️ Common Mistakes to Avoid</h3><ul><li>Setting too many alerts → noise</li><li>Setting too few alerts → blind spots</li><li>Not testing alerts after creating them</li><li>Ignoring alert severity levels</li></ul><h3>Final Thoughts</h3><p>Azure alerts are not just monitoring tools — they are <strong>your first line of defense in production systems</strong>.</p><p>When used correctly, they:</p><ul><li>reduce downtime</li><li>improve response time</li><li>enable automation</li><li>increase system reliability</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e674f55071e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Code First vs Database First — A Simple Topic That Quietly Shapes Your Entire Project]]></title>
            <link>https://medium.com/@RajuYelisi/code-first-vs-database-first-a-simple-topic-that-quietly-shapes-your-entire-project-c825453be787?source=rss-5fa3ea2fd2e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/c825453be787</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[design-thinking]]></category>
            <category><![CDATA[databse]]></category>
            <dc:creator><![CDATA[Raju Yelisi]]></dc:creator>
            <pubDate>Mon, 30 Mar 2026 17:01:21 GMT</pubDate>
            <atom:updated>2026-03-30T17:06:31.145Z</atom:updated>
            <content:encoded><![CDATA[<p>At first glance, this might feel like a <em>silly</em> or very basic topic.</p><p>“Code First vs Database First? Isn’t that just a preference?”</p><p>But in reality, this decision quietly influences <strong>how your team works, how fast you deliver, how maintainable your system becomes, and even how painful your future changes will be</strong>.</p><p>I’ve seen projects where this choice didn’t matter much…<br> And I’ve also seen projects where choosing the wrong approach caused months of friction.</p><p>So let’s break it down in a practical, no-nonsense way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*osFQCA2247WbOmy0IQ4_-g.png" /></figure><h3>What Are We Really Choosing Here?</h3><p>At its core, this is about one question:</p><blockquote><strong><em>Where does your source of truth live?</em></strong></blockquote><ul><li>In <strong>Code First</strong> → Your <em>code defines the database</em></li><li>In <strong>Database First</strong> → Your <em>database defines the code</em></li></ul><p>Simple on paper.<br> Impactful in real projects.</p><h3>Code First — Developer-Driven Approach</h3><p>In Code First, you start by writing your domain models.</p><pre>public class Order<br>{<br>    public int Id { get; set; }<br>    public decimal Amount { get; set; }<br>    public DateTime CreatedOn { get; set; }<br>}</pre><p>From there, Entity Framework generates the database schema using migrations.</p><h3>Why Developers Love Code First</h3><ul><li>Everything is in <strong>one place (code repository)</strong></li><li>Easy to <strong>track changes using Git</strong></li><li>Works well with <strong>CI/CD pipelines</strong></li><li>Enables <strong>rapid iteration</strong></li></ul><h3>Where It Can Go Wrong</h3><ul><li>Migrations becoming messy</li><li>Lack of database optimization</li><li>Unreviewed schema changes</li></ul><h3>Code First in Action — Pushing Tables to the Database</h3><p>Here’s what you actually run in your terminal.</p><h3>Step 1: Add Migration</h3><pre>dotnet ef migrations add InitialCreate</pre><p>This creates a migration file based on your models.</p><h3>Step 2: Apply Migration to Database</h3><pre>dotnet ef database update</pre><p>This pushes your schema to the database (creates tables).</p><h3>Example Workflow</h3><pre>dotnet ef migrations add AddEmployeeTable<br>dotnet ef database update</pre><p>✔ Your tables are now created/updated in the database</p><h3>Database First — Database-Driven Approach</h3><p>In Database First, you start with an existing database.</p><p>Tables, relationships, constraints — everything is already defined. From there, tools like Entity Framework generate your code (models and DbContext) based on that schema.</p><p>Instead of code shaping the database, the database drives your application structure.</p><h3>How It Typically Works</h3><ol><li>A database is created (manually or by a DBA)</li><li>You scaffold models from the database</li></ol><pre>dotnet ef dbcontext scaffold &quot;YourConnectionString&quot; Microsoft.EntityFrameworkCore.SqlServer</pre><p>✔ Your entities and DbContext are generated from existing tables</p><h3>Why Teams Use Database First</h3><ul><li>Ideal for working with existing or legacy databases</li><li>Strong control over schema design</li><li>Database optimization is handled upfront</li><li>Fits well in DBA-driven environments</li></ul><h3>Where It Can Be Challenging</h3><ul><li>Regenerating models can overwrite custom changes</li><li>Harder to keep code and database in sync</li><li>Slower iteration compared to Code First</li><li>Requires coordination between developers and DBAs</li></ul><h3>Database First in Action — Generating Code from Database</h3><p>Let’s say you already have an Orders table in your database.</p><p>Running the scaffold command will generate something like:</p><pre>public partial class Order<br>{<br>    public int Id { get; set; }<br>    public decimal Amount { get; set; }<br>    public DateTime CreatedOn { get; set; }<br>}</pre><p>Along with a DbContext configured with mappings.</p><p>✔ Your code now reflects the database structure</p><h3>The Real Difference (Beyond Definitions)</h3><p>This isn’t just technical — it’s cultural.</p><pre>| Factor      | Code First             | Database First          |<br>| ----------- | ---------------------- | ----------------------- |<br>| Ownership   | Developers             | DBAs / Data teams       |<br>| Speed       | Fast iteration         | Controlled, slower pace |<br>| Flexibility | High                   | Structured              |<br>| Best Fit    | New, cloud-native apps | Legacy, enterprise apps |</pre><h3>So… Which One Should You Choose?</h3><h3>Go with Code First if:</h3><ul><li>You’re building a <strong>new application</strong></li><li>Your team is <strong>developer-driven</strong></li><li>You need <strong>speed and agility</strong></li><li>You are working with <strong>modern cloud systems</strong></li></ul><h3>Go with Database First if:</h3><ul><li>You already have a <strong>database</strong></li><li>Your system is <strong>data-heavy</strong></li><li>You have a <strong>strong DBA culture</strong></li><li>You need <strong>strict schema control</strong></li></ul><h3>What Actually Works in Real Projects</h3><p>In reality, most teams don’t follow a pure approach.</p><p>You’ll often see:</p><ul><li>Code First with strict migration reviews</li><li>Database changes managed through pull requests</li><li>Close collaboration between developers and DBAs</li></ul><p>This hybrid model is what typically works best in production environments.</p><h3>Final Thought</h3><p>Yes, this topic may look small.</p><p>But this one decision can influence:</p><ul><li>How your team collaborates</li><li>How quickly you deliver features</li><li>How painful your future changes will be</li></ul><p>So next time someone says:</p><blockquote><em>“Let’s just pick one and move on…”</em></blockquote><p>Take a moment.</p><p>Because this “simple choice” is actually a <strong>foundational architectural decision</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c825453be787" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Azure Event Hub Auto-Scaling Can Save Your Production System from Unexpected Traffic Surges]]></title>
            <link>https://medium.com/@RajuYelisi/how-azure-event-hub-auto-scaling-can-save-your-production-system-from-unexpected-traffic-surges-2700cdae45ae?source=rss-5fa3ea2fd2e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/2700cdae45ae</guid>
            <category><![CDATA[autoscaling]]></category>
            <category><![CDATA[scaling]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[azure-event-hub]]></category>
            <dc:creator><![CDATA[Raju Yelisi]]></dc:creator>
            <pubDate>Wed, 04 Feb 2026 17:26:00 GMT</pubDate>
            <atom:updated>2026-02-04T17:26:00.898Z</atom:updated>
            <content:encoded><![CDATA[<h3>👋 Hello, Cloud Enthusiasts!</h3><p>If you’ve been working with Azure for any amount of time, you’ve probably encountered that inevitable moment when everything goes smoothly, and then <em>bam</em> — an unexpected surge in traffic comes crashing in.</p><p>It could be a flash sale, a viral marketing campaign, a spike in user activity, or just an unexpected system failure causing your resources to go into overdrive. And when that happens — especially in event-driven architectures — the last thing you want is to hit a performance bottleneck or worse, experience a complete system failure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nVZ05nndD_6jkQdCgUsC5Q.png" /></figure><p>When you’re using Azure Event Hub for high-throughput event streaming, the last thing you want is to run out of resources mid-traffic-surge. So, how do we ensure our Event Hub can handle the unexpected load without causing a complete meltdown in production? Well, that’s where auto-scaling comes in!</p><h3>Why Unexpected Load is a Big Problem in Event-Driven Systems</h3><p>Imagine this:</p><p>You’re running a live e-commerce website or a real-time IoT application where each event is crucial to your operations — like orders, customer behavior, or sensor data. Your event stream, flowing through Azure Event Hub, is handling thousands of messages per second. Your system is humming along, scaling just fine under normal load.</p><p>But then something happens:</p><ul><li>A flash sale starts, and within minutes, your user base doubles.</li><li>Or, your IoT sensors start sending more data than expected due to a network anomaly or a system bug.</li></ul><p>This unexpected surge in traffic can overwhelm your Event Hub, causing:</p><ul><li>Event ingestion delays</li><li>Dropped events due to lack of available throughput</li><li>Slow processing that negatively impacts downstream systems (order processing, analytics, etc.)</li><li>Service degradation that affects your entire platform</li></ul><p>Without auto-scaling, your system will struggle to keep up, leading to performance bottlenecks and a very unhappy user base.</p><h3>The Power of Auto-Scaling in Azure Event Hub: An Unsung Hero</h3><p>Now, here’s where Azure Event Hub’s auto-scaling can be your unsung hero during these unpredictable scenarios.</p><p>Azure Event Hub auto-scaling ensures that your event ingestion system automatically adjusts to meet the increased load, without manual intervention or system downtime. By automatically adjusting throughput units in response to traffic spikes, auto-scaling prevents bottlenecks and ensures consistent event stream processing even during peak usage.</p><h3>How Azure Event Hub Auto-Scaling Works</h3><p>Azure Event Hub supports auto-scaling through <strong>Throughput Units (TUs)</strong>. TUs define how much data your Event Hub can ingest and emit. Each TU provides a fixed amount of capacity, and when auto-scaling is enabled, Azure can automatically increase or decrease the number of TUs based on incoming event volume.</p><p>Here’s a quick breakdown:</p><h4>🔹 Throughput Units (TUs)</h4><p>Throughput Units define the ingestion and egress capacity of your Event Hub. Each TU provides a fixed amount of throughput. As event volume increases, Azure can automatically scale the number of TUs to handle the load.</p><h4>🔹 Auto-Scaling Triggers</h4><p>Azure monitors incoming event volume and throughput usage. When limits are approached, it automatically allocates additional capacity to keep the system running smoothly.</p><p><strong>Real-world benefit:</strong><br> When traffic spikes unexpectedly, auto-scaling increases throughput capacity in real time — preventing delays, throttling, or dropped events.</p><h3>A Real-World Scenario: Event Hub Auto-Scaling in Action</h3><p>Let’s break down a scenario where auto-scaling <strong>saves the day</strong>:</p><h4>Scenario: The Flash Sale Event</h4><p>It’s Black Friday, and your e-commerce platform is running an exclusive flash sale. You’re anticipating a 100% increase in traffic, but within minutes, the platform <strong>doubles its normal traffic</strong>. This leads to a <strong>massive surge in events</strong> — from user sign-ins and order placements to inventory checks.</p><h4>Without Auto-Scaling:</h4><ul><li>Event Hub throughput units hit their limits.</li><li>Events are delayed or throttled.</li><li>Order processing slows down, frustrating users.</li><li>Critical events (orders, inventory updates) may be dropped.</li><li>Downstream systems like payment gateways and analytics start failing.</li></ul><p>The result? A domino effect of failures across your platform.</p><h4>With Auto-Scaling:</h4><ul><li>Azure Event Hub automatically scales throughput units to meet demand.</li><li>Events flow smoothly with no delays or data loss.</li><li>Downstream systems receive all events in real time.</li></ul><p><strong>End Result</strong>: <strong>Happy client</strong>, <strong>smooth processing</strong>, and <strong>no service degradation</strong>.</p><h3>Setup</h3><p>We can set up autoscaling in azure event hub as below :</p><ol><li>On the Event Hubs namespace page, select Scale under Settings on the left menu.</li><li>In the Scale Settings page, select the checkbox for Enable (if the autoscale feature wasn’t enabled).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*4B6q-Sw9l9vN51W-2R--1w.png" /></figure><p>3. Enter the maximum number of throughput units or use the scrollbar to set the value.</p><h3>Final Thoughts: Scaling Is Not Optional in the Cloud</h3><p>One of the biggest strengths of Azure is that most Azure resources support scaling, either manually or automatically — and Event Hub is no exception.</p><p>Whether it’s compute, storage, databases, or messaging services, Azure gives you the flexibility to scale based on real-world demand. The key is understanding when to rely on auto-scaling and when to fine-tune scaling rules manually based on your workload.</p><p>If you’re building event-driven systems that must handle unpredictable traffic, enabling and properly configuring scaling isn’t a nice-to-have — it’s essential.</p><p>Design for scale early, use Azure’s built-in scaling capabilities wisely, and let the platform handle the heavy lifting when traffic spikes 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2700cdae45ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Azure Servicebus queue Vs Storage Queue]]></title>
            <link>https://medium.com/@RajuYelisi/azure-servicebus-queue-vs-storage-queue-5e8a7d4e2eaa?source=rss-5fa3ea2fd2e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e8a7d4e2eaa</guid>
            <category><![CDATA[azure-storage]]></category>
            <category><![CDATA[azure-service-bus]]></category>
            <category><![CDATA[queue]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Raju Yelisi]]></dc:creator>
            <pubDate>Tue, 27 Jan 2026 18:02:07 GMT</pubDate>
            <atom:updated>2026-01-27T18:02:07.159Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome back👋<br> If you’re building applications on Azure and trying to decide <strong>which queueing service to use</strong>, you’re not alone. Azure offers multiple messaging options, and choosing the right one can feel confusing — especially when Azure Storage Queue and Azure Service Bus Queue appear to solve the same problem.</p><p>In this article, we’ll simplify that decision by comparing both services using <strong>one real-world scenario</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*7y2mzyiKgau0cWlj.jpg" /></figure><h3>The Scenario: Order Processing in an E-Commerce Application</h3><p>Imagine an e-commerce application where users place orders. Once an order is submitted, it needs to go through multiple steps:</p><ol><li>Validate payment</li><li>Update inventory</li><li>Generate invoice</li><li>Notify the customer</li></ol><p>To keep the application responsive and scalable, these steps are handled asynchronously using queues.</p><h3>Using Azure Storage Queue in This Scenario</h3><p>Azure Storage Queue is a simple and cost-effective messaging solution.</p><h3>How It Works</h3><ul><li>The web application sends an order message to the queue</li><li>A background worker processes the order</li></ul><h3>Limitations in This Scenario</h3><ul><li>No guaranteed message ordering</li><li>No built-in duplicate detection (an order may be processed more than once)</li><li>No dead-letter queue for failed messages</li><li>Limited control over retries and failures</li></ul><h3>Suitability</h3><p>Storage Queue can work only if:</p><ul><li>Order sequence is not critical</li><li>Occasional duplicate processing is acceptable</li><li>Failures can be handled manually</li></ul><p>For most production-grade e-commerce systems, these limitations introduce risk.</p><h3>Using Azure Service Bus Queue in the Same Scenario</h3><p>Azure Service Bus Queue is designed for enterprise-grade messaging.</p><h3>How It Works</h3><ul><li>Orders are sent to the Service Bus Queue.</li><li>Consumers process messages using Peek-Lock, ensuring reliability.</li><li>Failed messages are automatically moved to a Dead-Letter Queue.</li></ul><h3>Advantages in This Scenario</h3><ul><li>Message ordering using sessions (FIFO)</li><li>Duplicate detection prevents double processing</li><li>Dead-letter queue for failed or invalid orders</li><li>Transactional support for data consistency</li><li>Robust retry and error-handling mechanisms</li></ul><h3>Outcome</h3><p>Orders are processed reliably, in order, and without duplication.</p><h3>Which One Should You Choose?</h3><p>For this order processing scenario:</p><ul><li>Azure Storage Queue is suitable for simple, low-risk workloads.</li><li>Azure Service Bus Queue is the better choice for business-critical applications.</li></ul><h3>Conclusion</h3><p>While both Azure Storage Queue and Azure Service Bus Queue support asynchronous messaging, they are built for different levels of complexity and reliability.</p><blockquote><em>When your system processes </em><strong><em>business-critical data like orders</em></strong><em>,<br> </em><strong><em>Azure Service Bus Queue is the safer and more scalable option</em></strong><em>.</em></blockquote><p>Thanks for reading, and I hope this helps you make a more informed architectural decision 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e8a7d4e2eaa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Event Hub Capture]]></title>
            <link>https://medium.com/@RajuYelisi/event-hub-capture-58c27f2b4c70?source=rss-5fa3ea2fd2e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/58c27f2b4c70</guid>
            <category><![CDATA[azure-event-hub]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[events]]></category>
            <dc:creator><![CDATA[Raju Yelisi]]></dc:creator>
            <pubDate>Tue, 27 Jan 2026 17:01:28 GMT</pubDate>
            <atom:updated>2026-01-27T17:01:28.463Z</atom:updated>
            <content:encoded><![CDATA[<p>In modern cloud-native applications, handling real-time data streams has become a core requirement. Applications generate massive volumes of events from IoT devices, application logs, telemetry, user interactions, and distributed systems. While processing data in real time is critical, storing these streams for analytics, auditing, and reprocessing is equally important.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/0*_FyiPAREYB79tl4R.png" /></figure><p>Azure Event Hubs offers a powerful feature called <strong>Event Hubs Capture</strong>, which enables automatic and seamless persistence of streaming data to Azure storage services without writing any custom code. This feature simplifies data pipelines and ensures that no event data is lost.</p><h3>What Is Event Hubs Capture?</h3><p><strong>Event Hubs Capture</strong> is a built-in feature of Azure Event Hubs that automatically captures streaming event data and writes it to <strong>Azure Blob Storage</strong> or <strong>Azure Data Lake Storage Gen2</strong>.</p><p>Instead of consuming events through a consumer application and manually storing them, Capture allows Event Hubs to periodically batch and store events in structured file formats such as:</p><ul><li><strong>Avro</strong></li><li><strong>Parquet</strong></li></ul><p>Captured data is stored in time-based intervals or based on data size thresholds, making it easy to integrate with analytics tools like Azure Synapse Analytics, Azure Databricks, or Azure Data Factory.</p><h3>Why Do We Use Event Hubs Capture?</h3><p>Event Hubs Capture is used for several key reasons:</p><h3>1. No-Code Data Archival</h3><p>Capture eliminates the need to build and maintain custom consumers just to persist streaming data.</p><h3>2. Reliable Event Storage</h3><p>All incoming events are automatically stored, ensuring durability and preventing data loss.</p><h3>3. Seamless Analytics Integration</h3><p>Stored data can be directly consumed by big data and analytics platforms for batch processing and historical analysis.</p><h3>4. Compliance and Auditing</h3><p>Captured data can be retained for compliance, auditing, or replaying events in case of failures.</p><h3>Real-Time Scenario: When to Use Event Hubs Capture</h3><h3>Scenario: IoT Device Telemetry Processing</h3><p>Imagine a company managing <strong>thousands of IoT sensors</strong> across multiple locations. These devices continuously send telemetry data such as temperature, humidity, and system health to Azure Event Hubs.</p><p><strong>Real-time needs:</strong></p><ul><li>Monitor live metrics</li><li>Trigger alerts when thresholds are exceeded</li></ul><p><strong>Batch and historical needs:</strong></p><ul><li>Analyze trends over months</li><li>Train machine learning models</li><li>Perform root cause analysis</li></ul><h3>How Event Hubs Capture Helps</h3><ul><li>Event Hubs ingests real-time telemetry data</li><li>Capture automatically stores all events in Azure Data Lake</li><li>Real-time consumers process live data</li><li>Analytics teams run batch queries on stored data later</li></ul><p>This architecture ensures <strong>real-time processing + long-term storage</strong> with minimal effort.</p><h3>How to Enable Event Hubs Capture Using Azure Portal</h3><p>Follow these steps to enable Event Hubs Capture through the Azure Portal:</p><h3>Step 1: Create or Open an Event Hub Namespace</h3><ol><li>Sign in to the <strong>Azure Portal</strong></li><li>Navigate to <strong>Event Hubs</strong></li><li>Select an existing namespace or create a new one</li></ol><h3>Step 2: Create or Select an Event Hub</h3><ol><li>Inside the namespace, select <strong>Event Hubs</strong></li><li>Click on an existing Event Hub or create a new one</li></ol><h3>Step 3: Enable Capture</h3><ol><li>In the Event Hub menu, select <strong>Capture</strong></li><li>Turn <strong>Capture</strong> to <strong>On</strong></li></ol><h3>Step 4: Configure Storage</h3><ol><li>Choose the destination:</li></ol><ul><li>Azure Blob Storage, or</li><li>Azure Data Lake Storage Gen2</li></ul><p>2. Select the storage account and container</p><p>3. Choose the file format (Avro or Parquet)</p><h3>Step 5: Set Capture Window</h3><p>Configure capture triggers:</p><ul><li><strong>Time window</strong> (e.g., every 5 minutes)</li><li><strong>Size window</strong> (e.g., every 300 MB)</li></ul><h3>Step 6: Save Configuration</h3><p>Click <strong>Save</strong> to enable Event Hubs Capture.</p><p>Once enabled, Event Hubs will automatically start capturing and storing incoming events.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CfSsx5ZV2EMctKvG4lIl2w.png" /></figure><p><strong>Note: </strong>Capture will triggered when one of the window(Time or Size in step 5) is satisfied.</p><h3>Conclusion</h3><p>Azure Event Hubs Capture is a powerful feature that simplifies streaming data architectures by automatically persisting event data to Azure storage. It reduces operational complexity, lowers costs, and enables both real-time and batch analytics without additional code.</p><p>For any solution that requires reliable storage of streaming data, Event Hubs Capture is a feature worth enabling from day one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58c27f2b4c70" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Disaster Recovery In service Bus]]></title>
            <link>https://medium.com/@RajuYelisi/disaster-recovery-in-service-bus-c2f14ca8916a?source=rss-5fa3ea2fd2e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2f14ca8916a</guid>
            <category><![CDATA[azure-service-bus]]></category>
            <category><![CDATA[disaster-recovery]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Raju Yelisi]]></dc:creator>
            <pubDate>Thu, 22 Jan 2026 17:24:03 GMT</pubDate>
            <atom:updated>2026-01-22T17:24:03.433Z</atom:updated>
            <content:encoded><![CDATA[<p>In modern distributed systems, messaging plays a critical role in connecting microservices, applications, and external systems. Azure Service Bus is often used as the backbone for reliable, asynchronous communication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/0*KSinCYoNZ9761dXi.png" /></figure><p>Imagine a scenario where your production system relies heavily on Azure Service Bus queues and topics to process customer orders. Everything works perfectly — until an unexpected regional outage occurs. Suddenly, producers cannot send messages, consumers stop processing data, and the entire workflow comes to a halt. Even a short downtime can result in lost revenue, delayed processing, and poor customer experience.</p><p>This is where <strong>Disaster Recovery (DR)</strong> in Azure Service Bus becomes essential.</p><h3>Why Do We Use Disaster Recovery?</h3><p>Disaster recovery is a strategy that ensures business continuity when unexpected failures occur, such as:</p><ul><li>Azure region outages</li><li>Natural disasters</li><li>Network failures</li><li>Large-scale infrastructure issues</li></ul><p>Azure Service Bus provides <strong>Geo-Disaster Recovery</strong> to help you recover from these situations without needing to redesign your application.</p><h3>Key Advantages of Disaster Recovery in Azure Service Bus</h3><ol><li><strong>Business Continuity</strong><br> Ensures your messaging infrastructure remains available even during regional failures.</li><li><strong>Alias-Based Failover</strong><br> Applications connect using a <strong>DR alias</strong>, not a specific namespace. During failover, the alias is switched to the secondary namespace with no code changes.</li><li><strong>Minimal Downtime</strong><br> Failover can be performed quickly, reducing system downtime and operational impact.</li><li><strong>No Message Schema Changes</strong><br> Queues and topics remain consistent between primary and secondary namespaces.</li></ol><h3>How to Set Up Disaster Recovery Using the Azure Portal</h3><p>Azure Service Bus Disaster Recovery works by pairing two namespaces:</p><ul><li><strong>Primary namespace</strong> (active)</li><li><strong>Secondary namespace</strong> (passive)</li></ul><p>Below are the steps to configure it using the Azure Portal.</p><h3>Step 1: Create Two Service Bus Namespaces</h3><ol><li>Go to the <strong>Azure Portal</strong></li><li>Create a <strong>Primary Service Bus namespace</strong> in your preferred region</li><li>Create a <strong>Secondary Service Bus namespace</strong> in a different Azure region</li></ol><ul><li>Both namespaces must be in the <strong>same subscription</strong></li><li>Both must use the <strong>same pricing tier</strong></li></ul><blockquote><em>Note: Entities (queues/topics) are </em><strong><em>not automatically synced</em></strong><em>, so they must be created in both namespaces.</em></blockquote><h3>Step 2: Configure Geo-Disaster Recovery</h3><ol><li>Navigate to the <strong>Primary Service Bus namespace</strong></li><li>Select <strong>Geo-disaster recovery</strong> from the left menu</li><li>Click <strong>Initiate pairing</strong></li><li>Choose the <strong>Secondary namespace</strong></li><li>Provide a <strong>DR alias name</strong> (this will be used in connection strings)</li><li>Click <strong>Create</strong></li></ol><p>Azure now links both namespaces under a single alias.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/0*eNDze9leI4QrlRBO.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SFigxSu-h9hzPZ3Y.png" /></figure><h3>Step 3: Update Application Connection Strings</h3><ul><li>Use the <strong>alias connection string</strong>, not the namespace-specific one</li><li>This ensures your application automatically points to the active namespace</li></ul><pre>Endpoint=sb://&lt;alias-name&gt;.servicebus.windows.net/</pre><h3>Step 4: Perform Failover (When Needed)</h3><p>In case of a disaster:</p><ol><li>Go to <strong>Geo-disaster recovery</strong> in the Azure Portal</li><li>Select <strong>Failover</strong></li><li>Confirm the action</li></ol><p>The alias is now mapped to the secondary namespace, and applications resume messaging operations with minimal disruption.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZdIgzWkdNH_peN2C.png" /></figure><p><strong>Note:</strong> A failover is triggered manually by the user(either explicitly through a command, or through client owned business logic that triggers the command) and never by Azure. It gives the user full ownership and visibility for outage resolution on Azure’s backbone.</p><h3>Conclusion</h3><p>Disaster recovery is not just an optional feature — it’s a critical requirement for systems that demand high availability and resilience. Azure Service Bus Geo-Disaster Recovery provides a simple yet powerful way to protect your messaging infrastructure from regional failures.</p><p>By using namespace pairing and alias-based failover, you can design systems that are fault-tolerant without adding complexity to your application code. With proper planning and configuration, Azure Service Bus ensures that your messages keep flowing — even when the unexpected happens.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2f14ca8916a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Circuit Breaker]]></title>
            <link>https://medium.com/@RajuYelisi/circuit-breaker-2060a58d2988?source=rss-5fa3ea2fd2e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/2060a58d2988</guid>
            <category><![CDATA[api-gateway]]></category>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[circuit-breaker]]></category>
            <category><![CDATA[api-management]]></category>
            <category><![CDATA[error-handling]]></category>
            <dc:creator><![CDATA[Raju Yelisi]]></dc:creator>
            <pubDate>Fri, 09 Jan 2026 12:22:59 GMT</pubDate>
            <atom:updated>2026-01-09T12:22:59.417Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey there, tech enthusiasts! 👋</p><p>Whether you’re a seasoned developer or just starting your journey into the world of software engineering, building resilient, fault-tolerant systems is something that every engineer needs to prioritize. Today, I want to dive into one of the most essential patterns used for handling failures gracefully — <strong>the Circuit Breaker pattern</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rMRdQDq9WVM4U7TkLrLjUw.png" /></figure><p>Imagine running an application, and everything seems to be working fine — until suddenly, something goes wrong. Maybe an external API is down, or a microservice is malfunctioning. The problem is, even though you know the issue is persistent, your system keeps trying to make the same request again and again.</p><p>It’s like repeatedly knocking on a door that you know won’t open. You keep wasting valuable time and resources, and what’s worse, you could end up causing even more damage to the system. Sounds frustrating, right?</p><p>What if there was a way to stop the endless retries, avoid system overload, and give your application a chance to recover before things get worse?</p><p>Enter the <strong>Circuit Breaker pattern</strong> — a powerful solution that prevents this exact scenario by halting the continuous failures and providing a mechanism to safely degrade functionality while ensuring your system stays resilient.</p><h3>What is a Circuit Breaker? And Why Do We Use It?</h3><p><em>A circuit breaker</em> is a design pattern that helps prevent a system from repeatedly trying to execute a failing operation, potentially causing cascading failures. It’s essentially a safeguard to protect a system from overloading when a service or component is experiencing issues.</p><p>Imagine a scenario where you’re calling an external API, but that API is down or taking too long to respond. Without a circuit breaker, your application would keep trying to call the API repeatedly, which can result in:</p><ul><li>Increased latency.</li><li>Exhausted resources (e.g., memory or CPU).</li><li>A cascading failure that brings down other parts of your system.</li></ul><p>The circuit breaker works like an electrical circuit breaker, cutting off the flow of requests once a failure threshold is reached. This prevents the system from continuing to attempt operations that are highly likely to fail, and it can recover once the external service is back online.</p><p><strong>Why do we use it?</strong><br> We use circuit breakers for the following reasons:</p><ul><li><strong>To improve system reliability</strong>: By preventing failure from spreading across services.</li><li><strong>To protect user experience</strong>: It ensures that users are not left waiting indefinitely or experiencing slow performance when an issue arises.</li><li><strong>To allow graceful degradation</strong>: With a circuit breaker in place, you can fail over to a fallback mechanism, like serving cached data or a simpler response.</li><li><strong>Reduces resource consumption</strong>: By not repeatedly attempting a failed operation, circuit breakers save on server resources and CPU cycles, allowing the system to handle other tasks efficiently.</li></ul><h3>Real-Time Scenario</h3><p>Let’s look at a real-world scenario to better understand how a circuit breaker can be applied:</p><p><strong>Scenario: A Payment Gateway Service</strong></p><p>Imagine you’re building an e-commerce platform that integrates with an external payment gateway to process credit card transactions. Normally, the integration works smoothly, but sometimes the payment gateway experiences downtime or high traffic, which causes delays or failures in processing payments.</p><p>Without a circuit breaker, your application might continue to try to make payment requests, even when the payment gateway is down, leading to:</p><ul><li>Users facing long wait times.</li><li>Excessive retries that consume resources.</li><li>A poor user experience that can lead to abandoned purchases and lost revenue.</li></ul><p><strong>Solution: Implementing a Circuit Breaker</strong></p><p>Now, let’s implement a circuit breaker:</p><ol><li><strong>Closed State</strong>: Initially, the circuit breaker is in the <em>closed</em> state, where the system continues to make requests to the payment gateway.</li><li><strong>Open State</strong>: If the system detects a certain number of consecutive failures (e.g., 5 failed transactions within a short period), the circuit breaker transitions to the <em>open</em> state. During this time, all subsequent payment requests are immediately rejected without hitting the payment gateway.</li><li><strong>Half-Open State</strong>: After a set period of time, the circuit breaker enters the <em>half-open</em> state, allowing a few requests to go through to test if the payment gateway has recovered. If these requests are successful, the circuit breaker goes back to the <em>closed</em> state, and regular operation resumes. If they fail, it goes back to the <em>open</em> state.</li></ol><p>With this approach, even if the payment gateway is temporarily unavailable, users will not face the frustration of repeatedly trying to make payments. Instead, they may be informed of the downtime, or the system may fall back to a different payment method, ensuring that the user experience is minimally affected.</p><h3>Implementation Methods for Circuit Breaker</h3><p>Now that we know why and what the Circuit Breaker pattern does, let’s discuss how you can implement it. There are two main approaches: <strong>code-based implementation</strong> and <strong>using Azure API Management</strong>.</p><h4>1. Code-based Implementation</h4><p>In a typical microservices architecture or monolithic application, circuit breakers are implemented directly in the application code. Here’s how you can do it:</p><ul><li><strong>Libraries</strong>: There are several popular libraries available to implement the Circuit Breaker pattern in your application code. Some of the most widely used libraries are:</li><li><strong>Resilience4j</strong> (Java): A lightweight fault tolerance library for Java, providing a simple way to implement Circuit Breaker, Retry, Timeout, and Rate Limiter patterns.</li><li><strong>Hystrix</strong> (Java): Developed by Netflix, Hystrix provides a robust implementation of the Circuit Breaker pattern, though it’s no longer actively maintained. However, it’s still in use in many legacy systems.</li><li><strong>Polly</strong> (.NET): For .NET applications, Polly is an open-source library that provides resilience and transient-fault-handling capabilities, including Circuit Breakers.</li><li><strong>Spring Cloud Circuit Breaker</strong>: This is an abstraction layer over libraries like Resilience4j and Hystrix, providing a consistent way to handle fault tolerance in Spring-based applications.</li></ul><p><strong>How it works</strong>: You wrap the potentially unreliable service call in a circuit breaker. The circuit breaker monitors the success or failure of these calls. If the failures exceed a defined threshold, the circuit breaker trips (opens), and subsequent calls are either rejected or fail immediately without hitting the unreliable service.</p><h4>2. Azure API Management</h4><p>For cloud-based applications or scenarios where you don’t want to manage the circuit breaker logic in your codebase, <strong>Azure API Management</strong> provides a managed way to implement circuit breakers.</p><p>Azure API Management allows you to set up <strong>policies</strong> that can control the behavior of incoming requests to your backend services. You can configure a policy that functions like a circuit breaker to prevent overwhelming backend services.</p><p>Azure provides a <strong>“Circuit Breaker” policy</strong> that can be added to your API configuration. This policy will monitor the health of your API backend and open the circuit if failures exceed a certain threshold. During this time, any requests that come through will either be rejected immediately or routed to a fallback service.</p><p>Example of an Azure API Management circuit breaker policy:</p><pre>&lt;inbound&gt;<br>    &lt;base /&gt;<br>    &lt;circuit-breaker duration=&quot;300&quot; threshold=&quot;5&quot; /&gt;<br>&lt;/inbound&gt;</pre><ul><li><strong>Duration</strong> specifies the duration in seconds for which the circuit breaker should stay open.</li><li><strong>Threshold</strong> defines the number of failed requests within the specified duration before the circuit breaker opens.</li></ul><p>This approach is particularly useful if you are using Azure to host your services and want to manage resiliency at the API gateway level, without having to modify your backend code.</p><h3>Conclusion</h3><p>In conclusion, the circuit breaker pattern is an essential tool for building robust, fault-tolerant systems. It prevents cascading failures, reduces resource usage, and helps maintain a positive user experience even when third-party services or internal systems experience issues.</p><p>Whether you implement a circuit breaker directly in your application code or leverage cloud services like Azure API Management, the result is the same: improved system reliability, reduced downtime, and a more resilient user experience. It’s a small addition to your system, but it can have a significant impact on its reliability.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2060a58d2988" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Service Bus LockLost expception]]></title>
            <link>https://medium.com/@RajuYelisi/service-bus-locklost-expception-a6a57e06e8b4?source=rss-5fa3ea2fd2e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6a57e06e8b4</guid>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[locks]]></category>
            <category><![CDATA[azure-service-bus]]></category>
            <category><![CDATA[error-message]]></category>
            <dc:creator><![CDATA[Raju Yelisi]]></dc:creator>
            <pubDate>Sun, 04 Jan 2026 10:53:40 GMT</pubDate>
            <atom:updated>2026-01-04T10:53:40.132Z</atom:updated>
            <content:encoded><![CDATA[<p>Ever had one of those moments when you’re so sure you’ve got everything under control, only to have it slip through your fingers? That’s what happens with a <strong>LockLostException</strong> in Azure Service Bus — everything’s going fine, and then, out of nowhere, your message lock disappears.</p><p>Now, the lock on your message isn’t some magical object that can vanish into thin air (though it might feel like it!). But in the world of message queues, a lost lock can throw a wrench into your whole system if you’re not prepared. So, what exactly is a <strong>LockLostException</strong>, why does it happen, and how can we prevent it from wreaking havoc on our applications?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jAFqaCL4hXI0W1uwhRKLOw.png" /></figure><p>Let’s dive into it and explore how you can keep your message locks safe and sound.</p><p>A <strong>LockLostException</strong> happens when the message lock you’ve acquired on an Azure Service Bus message is unexpectedly lost before your processing is finished. To understand this, let’s go over a few key concepts first:</p><ol><li><strong>Message Locking in Service Bus</strong>: When you retrieve a message from a queue or subscription, Azure Service Bus locks it so no other consumers can process the same message at the same time. This lock is essential to avoid message duplication or data inconsistencies.</li><li><strong>Why Locks are Important</strong>: Without a lock, multiple receivers could try to process the same message simultaneously, which could lead to conflicts, race conditions, and errors.</li></ol><p>Now, here’s the kicker: if something happens and the lock expires, is stolen, or is released early, you get a <strong>LockLostException</strong>. The typical error message you might encounter looks like this:</p><pre>Microsoft.Azure.ServiceBus: The lock on the message has been lost.<br> It may have expired or been abandoned.</pre><p>This means that while you were processing the message, something caused the lock to disappear before you could complete your work, and you lost control of that message.</p><h3>When Do We Observe the LockLostException?</h3><p>A <strong>LockLostException</strong> isn’t something you’ll see every day, but there are several common scenarios where it’s more likely to pop up. Here’s when you should be on the lookout:</p><ol><li><strong>Long-Running Message Processing</strong>:<br> If your message takes longer than the lock’s duration (usually 30 seconds by default), the lock will expire. In this case, <strong>LockLostException</strong> happens because you took too long to finish processing the message.</li><li><strong>Multiple Consumers Competing for the Same Message</strong>:<br> If you have multiple consumers pulling from the same queue or subscription and there’s a misconfiguration, one of the consumers might “steal” the lock from another, leading to this exception.</li><li><strong>Network Interruptions</strong>:<br> If there’s a network failure or connectivity issue while you’re working on the message, the lock might get lost before you can finish processing.</li><li><strong>Improper Receiver Configuration</strong>:<br> Sometimes, if your receivers aren’t set up to handle lock renewal or if their settings (e.g., <strong>ReceiveTimeout</strong>) are too short, the lock might not be held long enough for the message to be processed.</li></ol><p>In short, you’ll see the <strong>LockLostException</strong> when your message lock is prematurely released, either due to expiration, external interference, or system misconfigurations.</p><h3>PeekLock: A Hidden Culprit</h3><p>One of the leading causes for a <strong>LockLostException</strong> is <strong>PeekLock</strong>, a mode that allows you to “peek” at a message in the Service Bus queue without actually removing it from the queue. When you “peek” at a message, you acquire a lock to ensure that no one else can process it while you’re looking at it.</p><p>However, in <strong>PeekLock</strong> mode, the lock is only held for a short duration (default is 30 seconds). If your processing takes longer than that, the lock may expire, causing the <strong>LockLostExceptio</strong></p><h3>How to Reduce the LockLostException?</h3><p>You don’t have to let this exception mess with your system! Here are a few strategies to keep your message locks safe and reduce the chances of encountering a <strong>LockLostException</strong>:</p><ol><li><strong>Increase the Lock Duration</strong>:</li></ol><ul><li>If your processing time exceeds the default lock duration (30 seconds), consider extending the lock duration up to <strong>5 minutes</strong>. This will give your application more time to finish processing the message without losing the lock.</li></ul><p><strong>2. Optimize Your Message Processing Logic</strong>:</p><ul><li>The best way to avoid a lock timeout is to ensure that your processing logic is as efficient as possible. Break up large tasks into smaller chunks, or use background processing to speed up handling.</li></ul><p><strong>3. Implement Lock Auto-Renewal</strong>:</p><ul><li>Use <strong>auto-renewal</strong> to automatically extend the lock while you’re processing a message. This way, the lock won’t expire while you’re still working on it. Just make sure to renew the lock periodically during the processing</li></ul><h3>Switching to Receive &amp; Delete Mode</h3><p>If you’re experiencing frequent <strong>LockLostException</strong> issues, you might want to consider switching to the <strong>Receive &amp; Delete</strong> mode for message retrieval.</p><h4>What is Receive &amp; Delete Mode?</h4><p>In <strong>Receive &amp; Delete</strong> mode, when you retrieve a message from the Service Bus, it’s immediately removed from the queue or subscription and marked as processed. Unlike <strong>PeekLock</strong>, this mode doesn’t hold a lock on the message after it’s been retrieved. The message is “consumed” and deleted from the queue in one go, which means you don’t have to worry about lock expiration.</p><h4>Why Use Receive &amp; Delete Mode?</h4><ul><li><strong>No Lock Expiration</strong>: Since there’s no lock held on the message, you avoid the risk of the lock being lost before processing is complete.</li><li><strong>Simplicity</strong>: It simplifies your code and workflow because you don’t need to manage locks or worry about renewing them. The message is effectively “done” as soon as you’ve received it.</li><li><strong>Faster Processing</strong>: For quick and non-complex processing, <strong>Receive &amp; Delete</strong> can save time and reduce the chance of errors.</li></ul><p>However, keep in mind that <strong>Receive &amp; Delete</strong> should be used only when you’re confident that the message doesn’t need to be reprocessed or when you don’t need to ensure message delivery guarantees like “at least once” delivery.</p><h3>Conclusion</h3><p>The <strong>LockLostException</strong> may sound a bit scary at first, but with the right configuration and best practices, it’s totally avoidable. By increasing lock durations, optimizing processing logic, using auto-renewals, and ensuring that your consumers are set up correctly, you can significantly reduce the chances of this exception creeping into your system.</p><p>At the end of the day, the more you understand how message locking works in Azure Service Bus, the better equipped you’ll be to handle any bumps in the road, ensuring smooth, efficient message processing without interruptions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6a57e06e8b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplifying Security in Azure: The Power of Managed Identity]]></title>
            <link>https://medium.com/@RajuYelisi/simplifying-security-in-azure-the-power-of-managed-identity-ff196185e60c?source=rss-5fa3ea2fd2e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff196185e60c</guid>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[azure-managed-identities]]></category>
            <dc:creator><![CDATA[Raju Yelisi]]></dc:creator>
            <pubDate>Sun, 04 Jan 2026 10:27:02 GMT</pubDate>
            <atom:updated>2026-01-04T10:27:02.491Z</atom:updated>
            <content:encoded><![CDATA[<p>In the cloud computing world, security and identity management are top priorities. One of the key tools that help with this is <strong>Managed Identity</strong>, a feature commonly used in Azure services. But what exactly is it, and why should you care about it? Let’s break it down.</p><p><strong>Managed Identity</strong> is an identity in Azure Active Directory (Azure AD) that is automatically managed by Azure. It’s primarily used to authenticate applications and services without needing to manage credentials or secrets manually. In simple terms, it’s like a digital ID card for your applications that helps them securely talk to other services in Azure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/0*_vcs2FaJeb_wSHAG.png" /></figure><p>Instead of hardcoding usernames and passwords or managing secrets in your app, <strong>Managed Identity</strong> eliminates the need for these vulnerabilities. Azure does all the heavy lifting in creating, managing, and renewing these identities.</p><p>So, why should you use Managed Identity?</p><ul><li><strong>No Credentials to Manage</strong>: Forget about storing and rotating credentials. Azure handles all of it.</li><li><strong>Enhanced Security</strong>: Since you don’t have to manage secrets, the risk of them being leaked is reduced.</li><li><strong>Seamless Authentication</strong>: Managed identities integrate directly with Azure services like Azure Key Vault, Azure Storage, and more, ensuring secure communication.</li></ul><h3>Advantages of Using Managed Identity</h3><ol><li><strong>Automatic Secret Management</strong>: Azure handles everything related to the identity lifecycle (creation, rotation, expiration). You won’t have to worry about keeping secrets up to date.</li><li><strong>Secure Authentication</strong>: No more manually passing sensitive data like passwords. Managed identities enable secure, token-based authentication.</li><li><strong>Integration with Azure Services</strong>: Managed identities work smoothly with Azure services like Key Vault, Azure SQL Database, and Azure Storage, making your infrastructure more integrated and efficient.</li><li><strong>Reduced Human Error</strong>: By removing the need to manually handle credentials, the chances of accidental exposure or mistakes are minimized.</li><li><strong>Cost-Effective</strong>: You don’t need to pay for an external identity management service or spend time building and maintaining one.</li></ol><h3>Types of Managed Identities:</h3><p>Azure offers two types of managed identities: <strong>System-Assigned Managed Identity (SAMI)</strong> and <strong>User-Assigned Managed Identity (UAMI)</strong>. Let’s dive into the differences.</p><h4>System-Assigned Managed Identity (SAMI)</h4><p>A <strong>System-Assigned Managed Identity</strong> is automatically created when you enable a managed identity for a resource like an Azure Virtual Machine, App Service, or Azure Function. It is tied to the lifecycle of the resource it’s created for.</p><ul><li><strong>Created automatically</strong> when you enable the feature on a resource.</li><li><strong>Tied to the resource’s lifecycle</strong>: If the resource is deleted, the managed identity is also deleted.</li><li><strong>Best for a single resource</strong> that needs to authenticate with Azure resources like Key Vault or Azure Storage.</li></ul><h4>User-Assigned Managed Identity (UAMI)</h4><p>A <strong>User-Assigned Managed Identity</strong> is created independently of any specific Azure resource. It can be assigned to multiple resources, and its lifecycle is not tied to the resource it’s assigned to.</p><ul><li><strong>Created manually</strong> by you through the Azure portal, CLI, or ARM templates.</li><li><strong>Reusable across multiple resources</strong>: You can assign it to multiple services or VMs.</li><li><strong>Lifespan is independent</strong>: Deleting a resource that uses a UAMI doesn’t affect the identity itself.</li></ul><h3>Scenario-Based Explanation: System Assigned vs. User Assigned</h3><h4>System-Assigned Managed Identity Scenario</h4><p>Let’s say you have an <strong>Azure Virtual Machine (VM)</strong> that needs to access <strong>Azure Key Vault</strong> to retrieve a secret for its application. When you enable the <strong>System-Assigned Managed Identity</strong> on that VM, it automatically gets an identity in Azure AD. The VM can now authenticate to Azure Key Vault without any need for manual credentials.</p><h4>User-Assigned Managed Identity Scenario</h4><p>Now, imagine you have an <strong>Azure App Service</strong> and an <strong>Azure Virtual Machine</strong>, both needing access to the same <strong>Azure Key Vault</strong>. Instead of creating two separate system-assigned identities, you can create a <strong>User-Assigned Managed Identity</strong>. This identity can be assigned to both resources, allowing them both to securely access Key Vault without managing individual identities for each service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*aCu1yqsUOHMi5wsdHscOmQ.png" /></figure><h3>Conclusion</h3><p>Managed Identity is a powerful feature that simplifies security and identity management in Azure. By using system-assigned or user-assigned identities, you eliminate the hassle of managing credentials and secrets manually, which enhances security, reduces risks, and saves time. Whether you’re running a simple app or a large-scale system, Managed Identity is a tool that can bring your Azure infrastructure to the next level.</p><p>And remember, folks, using Managed Identity is like hiring a personal assistant for your apps. They take care of all the annoying paperwork (aka credentials) while you focus on building the next big thing. So let your app retire its “password list” and live the secure, stress-free life it deserves!</p><p>Thanks for reading! If you found this helpful, be sure to <strong>subscribe</strong> for more technical insights and tutorials on cloud architectures and beyond. Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff196185e60c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>