![]() |
VOOZH | about |
dotnet add package Franz.Common.Messaging --version 2.2.7
NuGet\Install-Package Franz.Common.Messaging -Version 2.2.7
<PackageReference Include="Franz.Common.Messaging" Version="2.2.7" />
<PackageVersion Include="Franz.Common.Messaging" Version="2.2.7" />Directory.Packages.props
<PackageReference Include="Franz.Common.Messaging" />Project file
paket add Franz.Common.Messaging --version 2.2.7
#r "nuget: Franz.Common.Messaging, 2.2.7"
#:package Franz.Common.Messaging@2.2.7
#addin nuget:?package=Franz.Common.Messaging&version=2.2.7Install as a Cake Addin
#tool nuget:?package=Franz.Common.Messaging&version=2.2.7Install as a Cake Tool
A messaging abstraction library within the Franz Framework that provides a unified foundation for building reliable, resilient, and extensible distributed messaging systems.
It supports outbox, inbox, retries, dead-letter queues, and multiple transports (starting with Kafka and MongoDB).
📦 Outbox Pattern
OutboxPublisherService.MongoMessageStore).📥 Inbox Pattern
IInboxStore.MongoInboxStore).🧩 Serializer Abstraction
IMessageSerializer contract.JsonMessageSerializer (camelCase, ignore nulls).📊 Observability & Monitoring
🎧 Listeners & Hosting
IListener interface.KafkaListener (transport-only)OutboxListener (transport-only)KafkaHostedServiceOutboxHostedService⚡ MongoDB Integration
MongoMessageStore with automatic index creation:
SentOnRetryCountCreatedOnMongoInboxStore with unique index on message IDs.AddMongoMessageStore, AddMongoInboxStore.
Franz.Common.Messaging/
├── Configuration/
├── Contexting/
├── Delegating/
├── Extensions/
├── Factories/
├── Headers/
├── Outboxes/
│ ├── OutboxOptions.cs
│ ├── OutboxPublisherService.cs
│ └── ServiceCollectionExtensions.cs
├── Serialization/
│ ├── ISerializer.cs
│ ├── JsonMessageSerializer.cs
│ └── ServiceCollectionExtensions.cs
├── Storage/
│ ├── InboxStore.cs
│ ├── IMessageStore.cs
│ ├── StoredMessage.cs
│ ├── Mappings/MessageMappingExtensions.cs
│ └── …
├── Message.cs
├── IMessageSender.cs
└── …
Hosting-specific projects:
IListener, MessageContext, base services.KafkaHostedService.OutboxHostedService, InboxHostedService.MessagingOptions in appsettings.json:
"Messaging": {
"BootstrapServers": "localhost:9092",
"GroupId": "my-service",
"OutboxCollection": "OutboxMessages",
"DeadLetterCollection": "DeadLetterMessages",
"InboxCollection": "InboxMessages"
}
builder.Services.AddMessagingCore();
builder.Services.AddMongoMessageStore(configuration);
builder.Services.AddMongoInboxStore(configuration);
builder.Services.AddKafkaHostedListener();
builder.Services.AddOutboxHostedListener();
IMessagingSender.MongoMessageStore.SendAsync (command) / PublishAsync (event).Add new transports (RabbitMQ, Azure Service Bus, etc.):
IListener + HostedService in Hosting.[Transport].Swap Mongo for SQL by implementing IMessageStore and IInboxStore.
Replace JSON with custom serializers via IMessageSerializer.
Emoji-style structured logs for clarity:
Compatible with OpenTelemetry for tracing message lifecycles.
Franz.Common.Messaging.Hosting.RabbitMq).This library is licensed under the MIT License. See the LICENSE file for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 5 NuGet packages that depend on Franz.Common.Messaging:
| Package | Downloads |
|---|---|
|
Franz.Common.Messaging.Hosting
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Messaging.Kafka
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Messaging.MultiTenancy
Shared utility library for the Franz Framework. |
|
|
Franz.Common.Messaging.Identity
Shared utility library for the Franz Framework. |
|
|
Franz.Common.MongoDB
Shared utility library for the Franz Framework. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.2.7 | 285 | 6/7/2026 |
| 2.2.6 | 288 | 6/6/2026 |
| 2.2.5 | 372 | 6/4/2026 |
| 2.2.4 | 372 | 6/3/2026 |
| 2.2.3 | 364 | 6/2/2026 |
| 2.2.2 | 371 | 6/2/2026 |
| 2.2.1 | 369 | 5/24/2026 |
| 2.1.4 | 326 | 4/27/2026 |
| 2.1.3 | 313 | 4/26/2026 |
| 2.1.2 | 315 | 4/26/2026 |
| 2.1.1 | 249 | 4/22/2026 |
| 2.0.2 | 249 | 3/30/2026 |
| 2.0.1 | 245 | 3/29/2026 |
| 1.7.8 | 263 | 3/2/2026 |
| 1.7.7 | 274 | 1/31/2026 |
| 1.7.6 | 260 | 1/22/2026 |
| 1.7.5 | 250 | 1/10/2026 |
| 1.7.4 | 258 | 12/27/2025 |
| 1.7.3 | 348 | 12/22/2025 |
| 1.7.2 | 361 | 12/21/2025 |