Azure Event Hubs · AsyncAPI Specification
Azure Event Hubs Messaging API
Version 1.0.0
Azure Event Hubs is a big data streaming platform and event ingestion service that can receive and process millions of events per second. This AsyncAPI specification describes the event-driven messaging capabilities of Azure Event Hubs, including publishing events to event hubs and consuming events from partitions via consumer groups. Event Hubs supports AMQP 1.0, Kafka, and HTTPS protocols for both producing and consuming events. Events are organized into partitions for parallel processing, and consumer groups provide independent views of the event stream.
View Spec
View on GitHub
Big DataEvent StreamingIoTMessage IngestionReal-Time ProcessingAsyncAPIWebhooksEvents
Channels
{eventHubName}
Publish event to event hub
An event hub channel for publishing and subscribing to events. Events sent to this channel are distributed across partitions based on the partition key or round-robin if no partition key is specified. Each event hub can have up to 32 partitions (configurable at creation time) and supports multiple consumer groups for independent consumption.
{eventHubName}/partitions/{partitionId}
Publish event to specific partition
A partition-specific channel for publishing events to a specific partition of an event hub. Using partition-targeted publishing gives you direct control over which partition receives the event but bypasses the load balancing that Event Hubs provides.
{eventHubName}/publishers/{publisherId}
Publish event with publisher identity
A publisher-specific channel for sending events with a publisher identity. Publisher policies enable you to track which publisher sent each event and to revoke publishing access for misbehaving publishers.
Messages
EventMessage
Event Hub Event
An event published to Azure Event Hubs.
BatchEventMessage
Batch Event Hub Events
A batch of events published to Azure Event Hubs.
ReceivedEventMessage
Received Event Hub Event
An event received from Azure Event Hubs.
Servers
amqp
amqp
{namespaceName}.servicebus.windows.net
Azure Event Hubs AMQP 1.0 endpoint. AMQP is the primary protocol for high-throughput event streaming. Connections use TLS on port 5671.
kafka
kafka
{namespaceName}.servicebus.windows.net:9093
Azure Event Hubs Kafka endpoint. Event Hubs provides a Kafka-compatible endpoint that allows existing Kafka applications to connect without code changes. Requires SASL/PLAIN authentication over TLS.
https
https
{namespaceName}.servicebus.windows.net
Azure Event Hubs HTTPS endpoint for sending events via REST API. This endpoint supports sending single events, batch events, and partition-targeted events.