Cloud · Azure in Depth

Azure Event Hubs partitions and Event Hubs Capture

azureEasyazureevent-hubsstreamingkafkaingestion

Interview question

How do partitions and consumer groups work in Azure Event Hubs, and how does Event Hubs Capture land data into ADLS?

How to answer

The short answer

Azure Event Hubs is a fully managed event ingestion streaming service capable of buffering millions of events per second with high throughput and low latency.

Partitions and consumer groups

Event Hubs uses a partitioned consumer architecture similar to Apache Kafka:

  • : Ordered event sequences that provide horizontal throughput scaling. Publishers pass a partition key so events for the same entity, such as an account or sensor, land on the same partition in strict sequential order.
  • : Independent read views of the event stream. Multiple downstream consumers, such as an Azure Stream Analytics job and a Python consumer, read from the same Event Hub independently at their own offsets without affecting each other.

Serverless ingest with Event Hubs Capture

Writing custom worker microservices simply to read streaming events and write them to storage introduces unnecessary operational complexity.

Event Hubs Capture solves this by automatically batching streaming data and writing it directly into ADLS Gen2 or Blob Storage in Avro or Parquet format. Engineers configure a time window or size threshold, such as every 5 minutes or 300 megabytes, and Event Hubs handles landing files into without executing consumer code.