Franz.Common.Messaging.RabbitMQ
3.0.0
dotnet add package Franz.Common.Messaging.RabbitMQ --version 3.0.0
NuGet\Install-Package Franz.Common.Messaging.RabbitMQ -Version 3.0.0
<PackageReference Include="Franz.Common.Messaging.RabbitMQ" Version="3.0.0" />
<PackageVersion Include="Franz.Common.Messaging.RabbitMQ" Version="3.0.0" />
<PackageReference Include="Franz.Common.Messaging.RabbitMQ" />
paket add Franz.Common.Messaging.RabbitMQ --version 3.0.0
#r "nuget: Franz.Common.Messaging.RabbitMQ, 3.0.0"
#:package Franz.Common.Messaging.RabbitMQ@3.0.0
#addin nuget:?package=Franz.Common.Messaging.RabbitMQ&version=3.0.0
#tool nuget:?package=Franz.Common.Messaging.RabbitMQ&version=3.0.0
Franz.Common.Messaging.RabbitMQ
RabbitMQ sender, publisher, consumer, topology initialization, dead-lettering, replay, and publisher-confirm integration.
Overview
The RabbitMQ adapter implements Franz's broker-neutral messaging contracts using RabbitMQ.Client. It registers the sender/publisher/consumer infrastructure and initializes the topology required by the generated messaging manifest.
Installation
dotnet add package Franz.Common.Messaging.RabbitMQ
Registration
using Franz.Common.Messaging.RabbitMQ.Extensions;
builder.Services.AddRabbitMQMessaging(builder.Configuration);
The default configuration section is Messaging:RabbitMQ. The helper registers the sender, publisher, consumer, options validation, connection/channel infrastructure, and messaging initialization.
Configuration
{
"Messaging": {
"RabbitMQ": {
"BootStrapServers": "amqps://<user>:<password>@rabbitmq.example.internal:5671/<vhost>",
"QueueName": "orders",
"QueueType": "Quorum",
"QueueDurable": true,
"MaxConcurrency": 1,
"ProvisioningMode": "Verify",
"ReplayStrategy": "ProgressiveFourStep",
"ManagementApiUrl": "https://rabbitmq.example.internal:15671",
"PublisherConfirmTimeoutSeconds": 5
}
}
}
BootStrapServers must be an absolute amqp:// or amqps:// URI with explicit username/password credentials, or configure host/user/password separately. When TLS is enabled, the URI must use amqps://.
Message envelope mapping
Both RabbitMQMessagingSender and RabbitMQMessagingPublisher map the Franz message envelope to AMQP basic properties:
Message.Id→BasicProperties.MessageIdas a GUID inDformat.Message.CorrelationId→BasicProperties.CorrelationId.Message.CausationHeader(x-causation-id) remains in the AMQP headers table.
On consumption, the listener restores a valid AMQP MessageId as Message.Id, projects AMQP CorrelationId into the Franz correlation header, and retains causation metadata. Other x- headers remain filtered as transport infrastructure metadata.
External producers should send a non-empty GUID MessageId and a GUID CorrelationId. For backward compatibility, missing or invalid message IDs are replaced with a new local ID; those deliveries do not have stable message identity across redelivery and cannot provide reliable inbox deduplication.
Topology provisioning
ProvisioningMode supports:
Create: create the configured exchanges, queues, dead-letter topology, replay queues, and manifest-derived bindings.Verify: inspect the expected topology and fail when required exchanges, queues, arguments, or bindings are missing or incompatible.Off: skip topology provisioning.
Verification of bindings requires the RabbitMQ Management HTTP API because AMQP does not expose passive binding inspection. Configure ManagementApiUrl and the management credentials/virtual host when using Verify.
The default queue type is quorum. Queue type, durability, TTL, length limits, delivery limits, and replay policy must match the broker topology already provisioned. RabbitMQ rejects redeclarations that conflict with immutable queue arguments.
Ordering and replay
MaxConcurrency defaults to 1. The adapter validates ordering settings against concurrency; configured ordering is preserved only when processing concurrency is 1.
ReplayStrategy defaults to NoReplay. ProgressiveFourStep provisions three retry stages and a dead-letter destination. A configured FailurePolicy with retries requires this replay strategy. Dead-letter/retry behavior is not a substitute for idempotent message handlers.
Hosting
The transport package does not itself attach the listener to the generic host. Add Franz.Common.Messaging.Hosting.RabbitMQ and call AddRabbitMQHostedListener(...). The hosting callback currently accepts the shared MessagingOptions base type; configure transport-specific RabbitMQ settings through Messaging:RabbitMQ and AddRabbitMQMessaging(configuration).
License
MIT. See the repository LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Franz.Common.DependencyInjection (>= 3.0.0)
- Franz.Common.Hosting (>= 3.0.0)
- Franz.Common.Messaging (>= 3.0.0)
- Franz.Common.Messaging.Hosting (>= 3.0.0)
- Franz.Common.Reflection (>= 3.0.0)
- Microsoft.Extensions.Options (>= 10.0.14)
- RabbitMQ.Client (>= 7.2.1)
- SharpCompress (>= 0.50.7)
- Snappier (>= 1.3.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Franz.Common.Messaging.RabbitMQ:
| Package | Downloads |
|---|---|
|
Franz.Common.Http.Messaging
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Messaging.Hosting.RabbitMQ
Shared utility library for the Franz Framework. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0 | 55 | 11/10/2026 |
| 2.3.4 | 393 | 11/1/2026 |
| 2.3.3 | 354 | 10/28/2026 |
| 2.3.2 | 147 | 10/27/2026 |
| 2.3.1 | 205 | 10/26/2026 |
| 2.3.0 | 228 | 7/21/2026 |
| 2.2.19 | 172 | 7/19/2026 |
| 2.2.18 | 184 | 7/19/2026 |
| 2.2.17 | 182 | 7/12/2026 |
| 2.2.16 | 182 | 7/2/2026 |
| 2.2.15 | 196 | 6/29/2026 |
| 2.2.14 | 184 | 6/29/2026 |
| 2.2.13 | 186 | 6/29/2026 |
| 2.2.12 | 181 | 6/28/2026 |
| 2.2.11 | 186 | 6/28/2026 |
| 2.2.10 | 179 | 6/28/2026 |
| 2.2.9 | 189 | 6/28/2026 |
| 2.2.8 | 187 | 6/28/2026 |
| 2.2.7 | 202 | 6/7/2026 |
| 2.2.6 | 185 | 6/6/2026 |