Back to JetBrains

Messaging Patterns for Modern Software Solutions | Irina Dominte (Scurtu) | .NET Day 2026

JetBrainsOctober 15, 202639m
In a Nutshell

Use async messaging with outbox, inbox, and saga patterns instead of HTTP to guarantee delivery and prevent lost or duplicate data in distributed systems. Outbox saves events in the same DB transaction as business data so messages survive broker or app failures; inbox deduplicates incoming messages to enforce exactly-once processing. Saga (orchestration or choreography) coordinates multi-service workflows with built-in recovery, and existing frameworks like MassTransit or NServiceBus already implement these patterns so you don’t build them yourself.

AI-Generated Notes

These notes were generated by AI and may contain inaccuracies.

Today I'm going to try to give you a quick look at three very important patterns, or at least I consider them to be very important patterns in messaging systems.

I am from Romania. I work as a software engineer at Particular. I blog, and recently I started a newsletter called "Eventually Consistent". The wordplay is intentional in some way, because I've always had a subscribe button on my blog, but I've never been able to set up a workflow that actually sends emails to people. So, I said I'll start one. I believe I am in the first month of running the newsletter, and the topics usually revolve around messaging or distributed systems.

We all make requests. We order food, we order, I don't know, things online, right? We expect the package to arrive, right? Therefore, there is this communication between us and the various systems, and we expect delivery to be exactly on time when we need the thing we ordered. Historically, if we are talking about correspondence, correspondence has been used since the earliest days. We used carrier pigeons to send messages, then horse-drawn carriages, and so on. So, some form of asynchronous communication has always been a part of our lives. But what was not part of our lives was asynchronous messaging itself in distributed systems.

We have always relied somewhat on the HTTP protocol to get the job done, but there is something. With HTTP, we had no guarantees of delivery. We would place an order, get a response if we were lucky, and that was it. There was nothing in the protocol that guaranteed our request would actually reach the server side. Let's think about this for a moment. When we make a request via HTTP, we hope that the server is available and working, right? But if there is a server malfunction, the content of our request will be lost. From the server's perspective, there is no way to know or re-execute our request. So, everything gets lost along the way, right?

Sign in to read the full notes

Get access to AI-generated notes, topic timestamps, and more.