Franz.Common.Messaging.AzureEventHubs
2.3.3
dotnet add package Franz.Common.Messaging.AzureEventHubs --version 2.3.3
NuGet\Install-Package Franz.Common.Messaging.AzureEventHubs -Version 2.3.3
<PackageReference Include="Franz.Common.Messaging.AzureEventHubs" Version="2.3.3" />
<PackageVersion Include="Franz.Common.Messaging.AzureEventHubs" Version="2.3.3" />
<PackageReference Include="Franz.Common.Messaging.AzureEventHubs" />
paket add Franz.Common.Messaging.AzureEventHubs --version 2.3.3
#r "nuget: Franz.Common.Messaging.AzureEventHubs, 2.3.3"
#:package Franz.Common.Messaging.AzureEventHubs@2.3.3
#addin nuget:?package=Franz.Common.Messaging.AzureEventHubs&version=2.3.3
#tool nuget:?package=Franz.Common.Messaging.AzureEventHubs&version=2.3.3
Franz.Common.Messaging.AzureEventHubs
Messaging and distributed integration for the Franz.Common framework on .NET 10.
Overview
The Franz.Common.Messaging.AzureEventHubs package provides messaging and distributed integration within Franz.Common. It is designed to compose with the rest of the framework rather than imposing unrelated infrastructure choices on every application.
Installation
dotnet add package Franz.Common.Messaging.AzureEventHubs
Design principles
- Explicit composition: register only the capabilities the application needs.
- Clear boundaries: keep domain and application contracts independent from provider-specific infrastructure where the package's role permits it.
- Predictable behavior: make configuration, failure modes, and lifecycle ownership visible rather than relying on hidden conventions.
- Operational readiness: validate security, resilience, diagnostics, and compatibility for the actual deployment environment.
Usage and configuration
Follow the package-specific setup, configuration, and code examples below. Only configure external services when this package requires them, and keep secrets outside source control.
Package-specific guide
Franz.Common.Messaging.AzureEventHubs is the Azure Event Hubs streaming transport adapter for the Franz Framework messaging stack.
It provides high-throughput, partitioned, Kafka-style event streaming backed by Azure Event Hubs, while preserving all Franz architectural guarantees:
- mediator-driven execution
- deterministic metadata propagation
- transport isolation
- cloud-native scalability
- consistent observability
This package is the streaming counterpart to:
Franz.Common.Messaging.KafkaFranz.Common.Messaging.AzureEventBus(Azure Service Bus)Franz.Common.Messaging.AzureEventGrid
✨ Features
🟦 Azure Event Hubs Streaming
- Native integration with Azure Event Hubs
- Partitioned, high-throughput event ingestion
- Consumer-group based scaling
- Azure-managed partition balancing
- Blob-based checkpointing
🧠 Franz-Native Semantics
- Uses Franz.Common.Messaging envelopes
- Dispatches messages through Franz.Common.Mediator
- No business logic at the transport layer
- Deterministic propagation of correlation and metadata
- Kafka-parity execution model
🧩 Explicit Mapping Layer (No AutoMapper)
Uses Franz.Common.Mapping
Single, authoritative transport boundary:
- Azure Event Hubs → Franz
Message
- Azure Event Hubs → Franz
No reflection magic
Auditable, version-safe mappings
🔁 Reliability & Checkpointing
- Uses Azure Blob Storage for checkpoints
- Checkpoints updated only after successful mediator dispatch
- At-least-once delivery semantics
- Fully Azure-native retry and failure handling
📊 Observability & Diagnostics
- Integrated with Franz.Common.Logging
- Structured logs with Franz conventions
- Partition, offset, and sequence number propagation
- OpenTelemetry compatible (via mediator pipelines)
📦 Dependencies
This package intentionally depends only on core Franz building blocks and Azure SDKs:
Franz.Common.Messaging
Franz.Common.Mediator
Franz.Common.Logging
Franz.Common.Errors
Franz.Common.Headers
Franz.Common.Mapping
Franz.Common.Serialization
Azure.Messaging.EventHubs
Azure.Messaging.EventHubs.Processor
Azure.Storage.Blobs
❌ No HTTP ❌ No ASP.NET dependencies ❌ No hosting logic ❌ No pull-based consumer APIs
📂 Project Structure
Franz.Common.Messaging.AzureEventHubs/
├── Configuration/
│ └── AzureEventHubsOptions.cs
│
├── Constants/
│ └── AzureEventHubsHeaders.cs
│
├── Consumers/
│ └── AzureEventHubsProcessor.cs
│
├── Producers/
│ └── AzureEventHubsProducer.cs
│
├── Mapping/
│ └── AzureEventHubsMessageMapper.cs
│
├── Serialization/
│ └── AzureEventHubsMessageSerializer.cs
│
├── Infrastructure/
│ ├── EventHubClientFactory.cs
│ └── EventHubProcessorFactory.cs
│
├── DependencyInjection/
│ └── AzureEventHubsServiceCollectionExtensions.cs
│
└── README.md
⚙️ Configuration
Configuration is explicit and strongly typed (no magic strings, no IConfiguration coupling):
services.AddFranzAzureEventHubs(options =>
{
options.ConnectionString = "<event-hubs-connection-string>";
options.EventHubName = "orders-stream";
options.ConsumerGroup = "$Default";
options.BlobConnectionString = "<storage-connection-string>";
options.BlobContainerName = "eventhubs-checkpoints";
});
🔄 Message Flow
Consumer (Streaming)
Azure Event Hubs receives an event
EventProcessorClientpushes the event to the processorEvent mapped to a Franz
MessageMessage dispatched through Franz.Mediator
On success:
- Blob checkpoint updated
On failure:
- Event retried by Azure Event Hubs
Producer
- Franz message published
- Payload serialized using Franz serialization
- Event sent via
EventHubProducerClient - Partitioning handled by Azure
📊 Header Mapping
| Franz Header | Azure Event Hubs Source |
|---|---|
| MessageId | EventData.MessageId |
| CorrelationId | EventData.CorrelationId |
| PartitionId | Processor context |
| SequenceNumber | EventData.SequenceNumber |
| Offset | EventData.Offset |
| EnqueuedTime | EventData.EnqueuedTime |
All headers are defined in AzureEventHubsHeaders.
🚀 Extensibility
This package is designed to evolve without breaking contracts:
- Custom partitioning strategies
- Schema evolution support
- Outbox integration
- Multi-hub consumption
- Advanced checkpoint policies
Hosting and orchestration are handled separately in a future package:
Franz.Common.Messaging.Azure.Hosting
📝 Version Information
- Current Version: v2.3.3
- Target Framework: .NET 10
- Part of the Franz Framework
v2.0.1 – Internal Modernization
- Messaging and infrastructure refactored for async, thread-safety, and modern .NET 10 patterns.
- All APIs remain fully backward compatible.
- Tests, listeners, and pipeline components modernized.
📜 License
MIT License — see LICENSE.
Dependency maintenance — October 2026
This project's dependency references were reviewed and updated as part of the repository-wide .NET 10 maintenance pass. The intended target framework and public API remain unchanged. Verify the resolved direct and transitive dependency graph through the repository's dependency validation workflow before publishing. See the central dependency upgrade record.
| 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
- Azure.Messaging.EventHubs (>= 5.12.2)
- Azure.Messaging.EventHubs.Processor (>= 5.12.2)
- Azure.Storage.Blobs (>= 12.29.1)
- Franz.Common.Errors (>= 2.3.3)
- Franz.Common.Headers (>= 2.3.3)
- Franz.Common.Logging (>= 2.3.3)
- Franz.Common.Mapping (>= 2.3.3)
- Franz.Common.Mediator (>= 2.3.3)
- Franz.Common.Messaging (>= 2.3.3)
- Franz.Common.Serialization (>= 2.3.3)
- SharpCompress (>= 0.50.7)
- Snappier (>= 1.3.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Franz.Common.Messaging.AzureEventHubs:
| Package | Downloads |
|---|---|
|
Franz.Common.Messaging.Hosting.Azure
Shared utility library for the Franz Framework. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.3.3 | 48 | 10/28/2026 |
| 2.3.2 | 54 | 10/27/2026 |
| 2.3.1 | 95 | 10/26/2026 |
| 2.3.0 | 149 | 7/21/2026 |
| 2.2.19 | 136 | 7/19/2026 |
| 2.2.18 | 130 | 7/19/2026 |
| 2.2.17 | 129 | 7/12/2026 |
| 2.2.16 | 139 | 7/2/2026 |
| 2.2.15 | 140 | 6/29/2026 |
| 2.2.14 | 136 | 6/29/2026 |
| 2.2.13 | 132 | 6/29/2026 |
| 2.2.12 | 136 | 6/28/2026 |
| 2.2.11 | 142 | 6/28/2026 |
| 2.2.10 | 139 | 6/28/2026 |
| 2.2.9 | 143 | 6/28/2026 |
| 2.2.8 | 137 | 6/28/2026 |
| 2.2.7 | 139 | 6/7/2026 |
| 2.2.6 | 137 | 6/6/2026 |
| 2.2.5 | 156 | 6/4/2026 |
| 2.2.4 | 134 | 6/3/2026 |