Azure Event Hubs libraries for .NET

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 lets you process and analyze the massive amounts of data produced by your connected devices and applications. Once Event Hubs has collected the data, you can retrieve, transform, and store it by using any real-time analytics provider or with batching/storage adapters. If you would like to know more about Azure Event Hubs, you may wish to review: What is Event Hubs.

Libraries for data access

The current generation of the Azure Event Hubs client library uses versions 5.0.1 and above. Microsoft recommends using version 5.2 or higher for new applications. If you are unable to existing applications to version 5.x, then Microsoft recommends using version 4.1 or higher.

Version 5.x

The version 5.x client libraries are part of the Azure SDK for .NET. The source code for the Azure Event Hubs client libraries is available on GitHub.

Use the following packages to publish and consume events from Event Hubs:

NuGet Package Reference Samples
Azure.Messaging.EventHubs API Reference for Azure.Messaging.EventHubs Samples for Azure.Messaging.EventHubs
Azure.Messaging.EventHubs.Processor API Reference for Azure.Messaging.EventHubs.Processor Samples for Azure.Messaging.EventHubs.Processor

Version 4.x

The source code for version 4.x of the Azure Event Hubs client libraries is available on GitHub.

Use the following legacy packages to publish and consume events from Event Hubs:

NuGet Package Reference Samples
Microsoft.Azure.EventHubs API Reference for Microsoft.Azure.EventHubs Samples for Azure.Messaging.EventHubs
Microsoft.Azure.EventHubs.Processor API Reference for Microsoft.Azure.EventHubs.Processor Samples for Azure.Messaging.EventHubs.Processor

Libraries for resource management

Use the following library to work with the Azure Event Hubs resource provider:

NuGet Package Reference
Azure.ResourceManager.EventHubs API Reference for Azure.ResourceManager.EventHubs