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
Azure.ResourceManager.EventHubs Management samples on GitHub

Java samples

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

Spring samples

Version Samples location
spring-cloud-azure-starter-eventhubs version 4 GitHub location
spring-cloud-azure-starter-integration-eventhubs version 4 GitHub location
spring-cloud-azure-stream-binder-eventhubs version 4 GitHub location

Python samples

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

JavaScript samples

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

Go samples

You can find Go samples for Azure Event Hubs in the azeventhubs folder in the azure-sdk-for-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.

Legacy samples

Programming language Version Samples location
.NET Microsoft.Azure.EventHubs version 4 (legacy) GitHub location
Samples in the Azure Samples repository GitHub location
Java azure-eventhubs version 3 (legacy) GitHub location
Samples in the Azure Samples repository GitHub location
Python azure-eventhub version 1 (legacy) GitHub location
JavaScript azure/event-hubs version 2 (legacy) GitHub location

Next steps

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