![]() |
VOOZH | about |
dotnet add package Franz.Common.Messaging.Kafka --version 2.2.7
NuGet\Install-Package Franz.Common.Messaging.Kafka -Version 2.2.7
<PackageReference Include="Franz.Common.Messaging.Kafka" Version="2.2.7" />
<PackageVersion Include="Franz.Common.Messaging.Kafka" Version="2.2.7" />Directory.Packages.props
<PackageReference Include="Franz.Common.Messaging.Kafka" />Project file
paket add Franz.Common.Messaging.Kafka --version 2.2.7
#r "nuget: Franz.Common.Messaging.Kafka, 2.2.7"
#:package Franz.Common.Messaging.Kafka@2.2.7
#addin nuget:?package=Franz.Common.Messaging.Kafka&version=2.2.7Install as a Cake Addin
#tool nuget:?package=Franz.Common.Messaging.Kafka&version=2.2.7Install as a Cake Tool
A Kafka transport integration for the Franz Framework, designed to provide clean, deterministic, and production-grade interaction with Kafka topics, producers, and consumers.
This package focuses exclusively on Kafka transport concerns: configuration, producers, consumers, serialization, and transactions.
🧱 Hosting, background execution, and listeners are intentionally not handled here. They live in Franz.Common.Messaging.Hosting.Kafka.
MessagingOptionsConnectionProvider and ConnectionFactoryProvider for managing Kafka connectionsMessagingPublisher for publishing integration eventsMessagingSender for point-to-point messagingConfluent.Kafka.IConsumer<string, string>IKafkaConsumerFactory as the single authority for consumer creationKafkaModel and ModelProvider for Kafka-based domain modelingIMessageDeserializerJsonMessageDeserializerMessagingTransaction for Kafka-backed transactional workflowsExchangeNamer and TopicNamer for consistent topic namingServiceCollectionExtensions for Kafka transport registrationThis package is transport-only.
| Responsibility | Package |
|---|---|
| Kafka producers | ✅ Franz.Common.Messaging.Kafka |
| Kafka consumers (transport) | ✅ Franz.Common.Messaging.Kafka |
| Background listeners | ❌ |
| Hosted services | ❌ |
| Message dispatch pipelines | ❌ |
| Hosting / workers | ➜ Franz.Common.Messaging.Hosting.Kafka |
This separation ensures:
This package depends on:
Confluent.Kafka (2.3.0)
Core Kafka client implementation
Franz.Common.Messaging
Core messaging abstractions and contracts
Franz.Common.Annotations
Messaging and modeling annotations
⚠️ Hosting integration is intentionally excluded. Use Franz.Common.Messaging.Hosting.Kafka for background listeners.
dotnet add package Franz.Common.Messaging.Kafka
using Franz.Common.Messaging.Kafka.Extensions;
public void ConfigureServices(IServiceCollection services)
{
services.AddKafkaMessaging(configuration);
}
This registers:
No hosted services are started.
public class OrderPublisher
{
private readonly IMessagingPublisher _publisher;
public OrderPublisher(IMessagingPublisher publisher)
{
_publisher = publisher;
}
public async Task PublishAsync(OrderCreatedEvent evt)
{
await _publisher.PublishAsync(evt);
}
}
public class PaymentSender
{
private readonly IMessagingSender _sender;
public PaymentSender(IMessagingSender sender)
{
_sender = sender;
}
public async Task SendAsync(PaymentCommand command)
{
await _sender.SendAsync(command);
}
}
Franz does not re-abstract Kafka consumers.
Consumers are provided directly by Confluent:
IConsumer<string, string>
They are:
IKafkaConsumerFactoryThis avoids:
This design is fully compatible with:
Because:
This package integrates with:
Kafka is treated as a transport, not an execution model.
IKafkaConsumerFactoryMIT License
See the LICENSE file for details.
This package intentionally mirrors enterprise messaging frameworks (MassTransit, NServiceBus, Brighter) by enforcing:
Transport ≠ Hosting
That separation is what makes Franz:
| 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 1 NuGet packages that depend on Franz.Common.Messaging.Kafka:
| Package | Downloads |
|---|---|
|
Franz.Common.Messaging.Hosting.Kafka
Shared utility library for the Franz Framework. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.2.7 | 119 | 6/7/2026 |
| 2.2.6 | 119 | 6/6/2026 |
| 2.2.5 | 122 | 6/4/2026 |
| 2.2.4 | 115 | 6/3/2026 |
| 2.2.3 | 135 | 6/2/2026 |
| 2.2.2 | 149 | 6/2/2026 |
| 2.2.1 | 136 | 5/24/2026 |
| 2.1.4 | 139 | 4/27/2026 |
| 2.1.3 | 131 | 4/26/2026 |
| 2.1.2 | 128 | 4/26/2026 |
| 2.1.1 | 137 | 4/22/2026 |
| 2.0.2 | 147 | 3/30/2026 |
| 2.0.1 | 138 | 3/29/2026 |
| 1.7.8 | 147 | 3/2/2026 |
| 1.7.7 | 165 | 1/31/2026 |
| 1.7.6 | 151 | 1/22/2026 |
| 1.7.5 | 168 | 1/10/2026 |
| 1.7.4 | 152 | 12/27/2025 |
| 1.7.3 | 246 | 12/22/2025 |
| 1.7.2 | 231 | 12/21/2025 |