<?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 Wakisa Munthali on Medium]]></title>
        <description><![CDATA[Stories by Wakisa Munthali on Medium]]></description>
        <link>https://medium.com/@munthaliwakisa?source=rss-0bcf20c5bdf3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*FZBpm7LeIq_7n0e5</url>
            <title>Stories by Wakisa Munthali on Medium</title>
            <link>https://medium.com/@munthaliwakisa?source=rss-0bcf20c5bdf3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 00:47:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@munthaliwakisa/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[Message Brokers Explained - What They Are, Why They Matter, and How I Use RabbitMQ in Production]]></title>
            <link>https://medium.com/@munthaliwakisa/message-brokers-explained-what-they-are-why-they-matter-and-how-i-use-rabbitmq-in-production-2b0cc476678c?source=rss-0bcf20c5bdf3------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b0cc476678c</guid>
            <category><![CDATA[production-system]]></category>
            <category><![CDATA[scaling]]></category>
            <category><![CDATA[rabbitmq]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Wakisa Munthali]]></dc:creator>
            <pubDate>Sun, 15 Mar 2026 15:37:20 GMT</pubDate>
            <atom:updated>2026-03-15T15:37:20.283Z</atom:updated>
            <content:encoded><![CDATA[<h3>Message Brokers Explained -What They Are, Why They Matter, and How I Use RabbitMQ in Production</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ma-2m19IaDvbXjCQ0lCeg.png" /><figcaption>Message Brokers Explained</figcaption></figure><p><strong>The Problem</strong></p><p>When I was building out a large system at work, I ran into a situation that I think a lot of developers face but rarely talk about openly.</p><p>I needed to take certain parts of the system offline for maintenance or updates but I couldn’t afford for that to bring down everything else. Users were still active. Other services still needed to run. The system had to stay partially alive.</p><p>On top of that, I had another concern if one service failed, I didn’t want that failure to cascade and take the rest of the system down with it. One broken component shouldn’t mean everything stops working.</p><p>And finally, as the system grew, I needed a way to scale individual parts independently without rebuilding the whole architecture.</p><p>Three problems. One solution I kept coming back to: a message broker.</p><p><strong>What is a Message Broker?</strong></p><p>Think about travelling from Lilongwe to Blantyre. You don’t drive there yourself, you go to a bus station, board a bus, and the bus takes your message (you) to the destination. Other buses are leaving for Mzuzu, Zomba, Karonga all at the same time, all independent of each other. Your journey to Blantyre doesn’t interrupt or depend on the bus going to Mzuzu.</p><p>A message broker works exactly the same way.</p><p>Service A (the producer) drops a message at the broker the bus station. The broker holds it and routes it to the right destination Service B (the consumer). Service A doesn’t wait around. It drops the message and gets back to its own work. Service B picks up the message when it’s ready.</p><p>They never need to talk to each other directly. The broker handles everything in between.</p><p>This means:</p><ul><li>If Service B is temporarily offline, the message waits at the station it doesn’t get lost</li><li>If you need ten buses instead of one, you just add more scaling without rebuilding the road</li><li>One bus breaking down doesn’t cancel every other route</li></ul><p><strong>Key Concepts</strong></p><p>Before going further, there are a few terms worth understanding. I’ll keep them simple.</p><p><strong>Producer</strong> The producer is the service that creates and sends the message think of it as the passenger boarding the bus. It has something it needs to deliver and it hands it off to the broker to handle.</p><p><strong>Consumer</strong> The consumer is the service that receives the message and acts on it. It picks up what the producer sent and processes it in the background away from the main flow of the application. The user doesn’t wait for this. It just happens.</p><p><strong>Queue</strong> The queue is the waiting area at the bus station. Messages sit here in order until the consumer is ready to pick them up. If the consumer is busy or temporarily down, the queue holds everything safely.</p><p><strong>Exchange</strong> The exchange is the station manager it decides which bus route each passenger goes on. You can send different types of messages and the exchange routes them to the right consumer automatically.</p><p><strong>Acknowledgement</strong> Once the consumer has successfully processed the message, it sends back a confirmation an acknowledgement. This tells the broker “I got it, you can remove it from the queue.” If no acknowledgement comes back, the broker knows something went wrong and can retry.</p><p><strong>Why I Chose RabbitMQ</strong></p><p>There are other message brokers out there Kafka, Azure Service Bus, ActiveMQ. I’m not here to tell you RabbitMQ is the best. But for my situation, it made the most sense for three reasons.</p><p>First, the documentation is extensive. When you’re implementing something for the first time in a production system, you need to be able to find answers fast. RabbitMQ’s documentation covers almost every scenario you’ll run into clearly and without gaps.</p><p>Second, the structure is simple and free-flowing. Some brokers feel like you’re fighting the architecture to get things done. RabbitMQ felt intuitive. The concepts map cleanly to how you actually think about message flow producers, exchanges, queues, consumers. Nothing unnecessarily complex.</p><p>Third, the .NET ecosystem support is strong. Since my backend is built on .NET, having a well-maintained client library and an active community solving .NET-specific problems made a real difference. When something breaks at 11pm, Stack Overflow having answers matters.</p><p>I’m not advocating for RabbitMQ blindly. Kafka might be the right choice if you’re dealing with massive event streams. Azure Service Bus makes sense if you’re deep in the Microsoft cloud ecosystem. But for a .NET backend, starting fresh, with a team that needed to move fast RabbitMQ was the right tool.</p><p><strong>A Real Example from My Project</strong></p><p>Here’s a concrete example of how I used RabbitMQ in a real system.</p><p>The scenario: a payment needed to be processed and the customer needed to be notified but this couldn’t block the main application flow. The user shouldn’t have to wait while the system talks to a bank.</p><p>Here’s how the flow worked:</p><p><strong>1. Invoice Generated (Producer)</strong> When an invoice was generated in the system, a message was published to RabbitMQ containing the transaction reference. The main application didn’t wait it handed the message to the broker and moved on immediately.</p><p><strong>2. Banking System Integration (Consumer 1)</strong> A separate consumer picked up the message and sent the transaction reference to the banking system for approval. This ran completely in the background decoupled from the user’s session entirely.</p><p><strong>3. SMS Notification (Consumer 2)</strong> Once the banking system approved the request, another message was published. A second consumer picked this up and sent an SMS confirmation to the customer.</p><p>Three steps. Three independent services. None of them waiting on each other.</p><p>If the SMS service went down temporarily, the invoice was still generated and the payment still processed. The SMS message sat in the queue and delivered once the service came back up. The customer got their confirmation just slightly delayed. No data lost. No cascade failure.</p><p>That’s the power of decoupling with a message broker.</p><p><strong>When NOT to Use a Message Broker</strong></p><p>I want to be honest here, message brokers are not a silver bullet.</p><p>If you’re building a simple CRUD application, a personal project, or an internal tool with one or two services, adding a message broker is overkill. You’re introducing infrastructure complexity, another system to monitor, another thing that can go wrong for a problem that doesn’t exist yet.</p><p>A direct API call between two services is perfectly fine in most cases. Don’t add complexity because it feels more “professional” or because you read about it somewhere. Solve the problem in front of you with the simplest tool that works.</p><p>Message brokers earn their place when:</p><ul><li>You have multiple services that need to communicate without depending on each other</li><li>You need guaranteed message delivery even when services go down</li><li>You need to scale consumers independently based on load</li><li>Processing can happen asynchronously without the user waiting</li></ul><p>If none of those apply to your system right now you probably don’t need one yet.</p><p>And finally, I’m still learning. RabbitMQ has concepts I haven’t touched yet. Kafka exists for a reason. Cloud-native brokers have their place. There is more to learn out there, and I’d rather tell you that honestly than pretend I’ve mastered it.</p><p><strong>What I Learned</strong></p><p>Message brokers changed how I think about system design. Not because they’re complex but because they forced me to think about failure. What happens when this service goes down? What happens when the load doubles? What happens when two systems need to evolve independently?</p><p>Those are questions every developer building real systems should be asking.</p><p>If this post helped you understand message brokers a little better, that’s enough. Pick up the RabbitMQ documentation, spin up a local instance, and send your first message. The concept clicks the moment you see it working.</p><p>Happy building.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b0cc476678c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>