Articles
Practical, deeply explained engineering writing — free to read, no sign-up required.
All Articles
Topic Exchanges – Wildcard Pattern Routing (* and #)
A Topic Exchange routes messages by matching dot-delimited routing keys against wildcard patterns. Use * to match exactly one word and # to match zero or more words, so each .NET service receives only the events it needs.
Fanout Exchanges – Pub/Sub Broadcasting Across Services
A Fanout Exchange copies every incoming message to all queues bound to it. It ignores routing keys completely. Use it when one event must trigger multiple independent .NET microservices at the exact same time.
Direct Exchanges – Exact-Match Task Routing
A direct exchange routes a message only to queues whose binding key matches the message's routingKey exactly. This lets one C# producer send payment.process and invoice.generate tasks to separate worker queues without mixing them up.
Competing Consumers & Work Queues in C#
Competing consumers let you run multiple C# worker instances on the same RabbitMQ queue. RabbitMQ sends each task to only one free worker, so heavy background jobs finish faster without duplicate work.
Connection & Channel Lifecycle Management in .NET
Keep one long-lived IConnection per .NET app as a singleton because TCP connections are heavy. Create short-lived or pooled IChannel instances for each task, and never share one IChannel across concurrent threads.
Your First C# Producer & Consumer with RabbitMQ.Client
Install the RabbitMQ.Client NuGet package to connect C# apps to RabbitMQ. Open one IConnection and one IChannel, declare a queue, and send UTF-8 JSON bytes with BasicPublishAsync. A separate C# worker reads those bytes using AsyncEventingBasicConsumer without slowing down your main app.
Running RabbitMQ Locally with Docker & Management UI
Run the official rabbitmq:4-management image with Docker Compose to start a local broker in seconds. Expose port 5672 for your app traffic and port 15672 for the browser dashboard. You can then inspect queues, connections, and channels live without installing Erlang on your machine.
Introduction to Message Brokers & RabbitMQ Architecture
A message broker is a middleman that passes messages between apps so they do not wait for each other. In RabbitMQ, a Producer sends a message to an Exchange, which routes it through a Binding into a Queue for a Consumer to process.
Capstone Project: Type-Safe Task & API Client
Writing TypeScript inside your own code is easy. The real challenge starts when your app talks to an external API. By default, response.json() returns any, which quietly turns off type safety and lets bad data crash your app in production.
Project Structure for Frontend & Backend Apps
When a project starts small, putting all files into a couple of folders feels fast and easy. Six months later, that same codebase turns into a maze. Developers waste hours hunting for files, backend API changes silently break the frontend, and every pull request turns into an argument about spaces versus tabs.
TypeScript – Typing Promises, Async/Await & Error Handling
Modern web and backend applications spend a lot of time waiting. They wait for API responses, database queries, file reads, and third-party services. In JavaScript and TypeScript, we handle this waiting using Promises and async/await.
TypeScript – ES Modules, Barrel Files & Circular Dependency Traps
When a TypeScript project grows from two files to two hundred files, how you connect those files matters just as much as the code inside them. ES Modules (import and export) let you split your app into clean, reusable pieces.