Azure.Messaging.EventHubs 5.1.0 The ID prefix of this package has been reserved for one of the owners of this package by

Azure Event Hubs is a highly scalable publish-subscribe service that can ingest millions of events per second and stream them to multiple consumers.  This client library allows for both publishing and consuming events using Azure Event Hubs. For more information about Event Hubs, see

There is a newer version of this package available.
See the version list below for details.
Install-Package Azure.Messaging.EventHubs -Version 5.1.0
dotnet add package Azure.Messaging.EventHubs --version 5.1.0
<PackageReference Include="Azure.Messaging.EventHubs" Version="5.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Azure.Messaging.EventHubs --version 5.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Azure.Messaging.EventHubs, 5.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Azure.Messaging.EventHubs as a Cake Addin
#addin nuget:?package=Azure.Messaging.EventHubs&version=5.1.0

// Install Azure.Messaging.EventHubs as a Cake Tool
#tool nuget:?package=Azure.Messaging.EventHubs&version=5.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

### Acknowledgments
Thank you to our developer community members who helped to make the Event Hubs client libraries better with their contributions to this release:
- Alberto De Natale _([GitHub](
- Daniel Marbach _([GitHub]((
### Changes
#### General availability of preview features
- The set of features from v5.1.0-preview.1 are now generally available.  This includes the `EventProcessor<TPartition>` and `PartitionReceiver` types which focus on advanced application scenarios which require greater low-level control.
#### Publishing events
- A set of events may now be published without an explicit batch; a batched approach will be used when communicating with the Event Hubs service, with an implicit batch created on the sender's behalf.
#### Bug fixes and foundation
- The transport producers used for sending events to a specific partition are now managed by a pool with sliding expiration to enable more efficient resource use and cleanup.  _(A community contribution, courtesy of ([albertodenatale](
- Timing operations have been refactored to make use of a more efficient approach with fewer allocations.  (A community contribution, courtesy of _([danielmarbach](
- Fixed a bug with EventDataBatch; it is now thread-safe.
- Minor enhancements to reduce allocations and improve efficiency

NuGet packages (27)

Showing the top 5 NuGet packages that depend on Azure.Messaging.EventHubs:

Package Downloads
Microsoft Azure WebJobs SDK EventHubs Extension
HealthChecks.AzureServiceBus is the health check package for Azure EventHub, and Azure Service Bus Queues and Topics.
Azure Event Hubs is a highly scalable publish-subscribe service that can ingest millions of events per second and stream them to multiple consumers. This library extends its Event Processor with durable storage for checkpoint information using Azure Blob storage. For more information about Event Hubs, see
Write Serilog events to Azure Event Hub
Microsoft Orleans. streaming provider for Azure EventHubs

GitHub repositories (9)

Showing the top 5 popular GitHub repositories that depend on Azure.Messaging.EventHubs:

Repository Stars
Orleans is a cross-platform framework for building distributed applications with .NET
This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at or our versioned developer docs at
Enterprise HealthChecks for ASP.NET Core Diagnostics Package
The Service Bus Explorer allows users to connect to a Service Bus namespace and administer messaging entities in an easy manner. The tool provides advanced features like import/export functionality or the ability to test topic, queues, subscriptions, relay services, notification hubs and events hubs.
Asp.Net Core 5 Clean Architecture (Microservices, Modular Monolith, Monolith) samples (+Blazor, Angular 12, React 17, Vue 2.6), Domain-Driven Design, CQRS, Event Sourcing, SOLID, Asp.Net Core Identity Custom Storage, Identity Server 4 Admin UI, Entity Framework Core, Selenium E2E Testing, SignalR, Hosted Services, Health Checks, Security Headers, ...

Version History

Version Downloads Last updated
5.6.1 2,186 9/8/2021
5.6.0 47,598 8/10/2021
5.5.0 99,209 7/7/2021
5.5.0-beta.1 515 6/8/2021
5.4.1 200,407 5/11/2021
5.4.0 162,707 4/5/2021
5.4.0-beta.1 864 3/17/2021
5.3.1 286,265 3/9/2021
5.3.0 137,874 2/9/2021
5.3.0-beta.4 28,263 11/10/2020
5.3.0-beta.3 5,841 9/30/2020
5.3.0-beta.1 2,133 9/15/2020
5.2.0 692,265 9/8/2020
5.2.0-preview.3 3,292 8/18/2020
5.2.0-preview.1 5,630 7/6/2020
5.1.0 526,992 5/5/2020
5.1.0-preview.1 1,063 4/6/2020
5.0.1 228,440 1/29/2020
5.0.0-preview.6 17,528 12/3/2019
5.0.0-preview.5 4,176 11/1/2019
5.0.0-preview.4 2,023 10/8/2019
5.0.0-preview.3 779 9/10/2019
5.0.0-preview.2 1,529 8/6/2019
5.0.0-preview.1 1,403 7/1/2019
Show less