Git repositories with samples for Azure Event Hubs

You can find Event Hubs samples on GitHub. These samples demonstrate key features in Azure Event Hubs. This article categorizes and describes the samples available, with links to each.

.NET samples

Version Samples location
Azure.Messaging.EventHubs version 5 (latest) Event Hubs samples on GitHub
Event Hubs Processor samples on GitHub
Microsoft.Azure.EventHubs version 4 (legacy) GitHub location

Java samples

Version Samples location
azure-messaging-eventhubs version 5 (latest) GitHub location
azure-eventhubs version 3 (legacy) GitHub location

Python samples

Version Samples location
azure-eventhub version 5 (latest) GitHub location
azure-eventhub version 1 (legacy) GitHub location

JavaScript samples

Version Samples location
azure/event-hubs version 5 (latest) GitHub location
azure/event-hubs version 2 (legacy) GitHub location

Go samples

You can find Go samples for Azure Event Hubs in the azure-event-hubs-go GitHub repository.

Azure CLI samples

You can find Azure CLI samples for Azure Event Hubs in the azure-event-hubs GitHub repository.

Azure PowerShell samples

You can find Azure PowerShell samples for Azure Event Hubs in the azure-event-hubs GitHub repository.

Apache Kafka samples

You can find samples for the Event Hubs for Apache Kafka feature in the azure-event-hubs-for-kafka GitHub repository.

Next steps

You can learn more about Event Hubs in the following articles: