dotnet-messaging-patterns

Implements durable messaging patterns in .NET with Azure Service Bus, RabbitMQ and MassTransit.

1|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/rudironsoni/dotnet-agent-harness --skill dotnet-messaging-patterns-rudironsoni
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-messaging-patterns
Source: https://github.com/rudironsoni/dotnet-agent-harness/tree/main/.rulesync/skills/dotnet-messaging-patterns
Command: npx skills add https://github.com/rudironsoni/dotnet-agent-harness --skill dotnet-messaging-patterns-rudironsoni

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides guidance on implementing durable messaging patterns in .NET, enabling the creation of reliable and scalable event-driven architectures.

Core Features & Use Cases

  • Messaging Patterns: Covers publish/subscribe, competing consumers, dead-letter queues, and saga orchestration.
  • Broker Integration: Demonstrates usage with Azure Service Bus, RabbitMQ, and MassTransit.
  • Delivery Guarantees: Explains and implements at-least-once and exactly-once delivery strategies.
  • Use Case: Implement a microservices architecture where orders are placed, payments are processed, and inventory is updated asynchronously and reliably.

Quick Start

Use the dotnet-messaging-patterns skill to implement publish/subscribe messaging using MassTransit.

Frequently Asked Questions about dotnet-messaging-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement saga orchestration in a .NET event-driven architecture?

Saga orchestration in .NET event-driven architectures coordinates multi-step workflows like order processing and payments. This Skill provides guidance on implementing sagas using MassTransit, ensuring reliable asynchronous state management across distributed services.

What's the best way to configure dead-letter queues with MassTransit and RabbitMQ?

Dead-letter queues with MassTransit and RabbitMQ capture failed messages to prevent data loss in event-driven systems. This Skill demonstrates how to configure durable messaging patterns that isolate unprocessable messages for later inspection and retry handling.

How do I achieve exactly-once delivery in .NET messaging systems?

Exactly-once delivery in .NET messaging systems prevents duplicate processing by combining idempotent consumers with transactional outboxes. This Skill explains and implements delivery strategies to achieve exactly-once guarantees using Azure Service Bus and MassTransit.

Does this guide cover competing consumers for RabbitMQ and Azure Service Bus?

Yes, it covers competing consumers for both RabbitMQ and Azure Service Bus. The Skill demonstrates how to scale message processing horizontally by allowing multiple consumer instances to pull from the same queue, improving throughput in .NET event-driven architectures.

When should I use publish/subscribe vs competing consumers in event-driven .NET systems?

Use publish/subscribe to broadcast events to all independent services simultaneously, and competing consumers to distribute workload among instances of the same service. This Skill outlines durable messaging patterns to determine the correct topology for reliable message delivery.

Can I use MassTransit to build publish/subscribe messaging in .NET?

Yes, you can use MassTransit to build publish/subscribe messaging in .NET. This Skill provides guidance on implementing durable event-driven architectures, demonstrating how to route events reliably across Azure Service Bus or RabbitMQ brokers.