Ordered device telemetry with independent readers in Azure Event Hubs
Short answer
C Azure Event Hubs ingests the high-throughput device stream, uses each device ID as a partition key to preserve per-device order, and gives every independent application its own consumer group and offset.
Question
Key Takeaways
Ordered, high-throughput telemetry with independent readers is a partitioned event-stream problem, not a queue problem. Azure Event Hubs is correct: the device ID becomes the partition key so per-device order is preserved, while separate consumer groups let each application read the complete retained stream at its own checkpoint. Event Grid, Service Bus queues and Durable Functions each fail a different requirement.
Expert Analysis
A per-device ordering guarantee combined with independent applications reading the complete stream at their own pace points to Azure Event Hubs, because a partitioned event log with consumer groups satisfies both constraints simultaneously.
Partition keys define Event Hubs ordering, while Service Bus session IDs define queue ordering
The boundary is between two different ordering contracts, not between two products that both 'keep messages in order.' In Event Hubs, the device ID becomes a partition key; the service hashes that key to one partition, and every event carrying the same device ID lands in that partition. Order is preserved only inside that partition, and there is no hub-wide sequence across the other partitions. In a Service Bus queue, the comparable control is a session ID: messages with the same session are received in order by one session-aware receiver, while other receivers process other sessions. The difference is what happens to the message afterward. A queue hands each message to one competing receiver and removes it when completed; it is a work-distribution construct. An event hub retains events in a partitioned log, and many readers can view the same events. That is why 'same device ID stays ordered' alone does not settle the choice: both session-enabled queues and partition-keyed event hubs can honor it. The second clause — independent applications reading the complete stream at their own pace — is what moves the requirement from queue semantics to log semantics, because only the log gives each application its own cursor. Service Bus sessions serialize access for a receiver; they do not create a replayable copy of the stream for each application.
Consumer groups and offsets turn the device stream into a replayable Event Hubs log for each application
The decisive property is that every independent reader can be assigned its own consumer group, and each consumer group tracks its own position through the same Event Hubs partitions using offsets and checkpoints. One application can be minutes behind while another is current; neither steals the other's events. With a queue, two receivers on the same queue are competing consumers: message N goes to one, message N+1 to the other, and the full sequence is not available to both. With Event Hubs, the consumer group is a view over the entire stream, not a separate copy of it and not a subscription filter. Checkpointing, usually persisted in an Azure Storage account by the Event Processor client, records how far each group has advanced. The high-throughput clause is also satisfied because Event Hubs scales with throughput or processing units and partitions, and producers batch events. The device ID must be present on every event and used consistently as the partition key; if the producer sends some events for a device without that key, those events are round-robin distributed and per-device order is lost. That is the deciding condition: ordering is scoped to a key and partition, while independent consumption is scoped to a consumer group.
Event Grid, Service Bus queue, and Durable Functions each break a different device-telemetry requirement
Azure Event Grid is a push-based event router for discrete notifications; it can fan out to many handlers, but it does not expose a retained, partition-ordered stream that each subscriber reads with its own cursor. Retries and at-least-once delivery can duplicate notifications, and an offline subscriber does not get a complete ordered history to replay. Azure Service Bus queue provides durable messaging and, with sessions, per-device ordering, but its competing-consumer model gives each message to one receiver and completes it; two applications cannot independently replay the complete device history from the queue. A topic with independent subscriptions could copy messages to several applications, but a queue's completion removes that copy for all receivers. Durable Functions is an orchestration runtime: it persists workflow state, schedules activity functions, and coordinates long-running work, but it is not an ingestion endpoint for a high-throughput telemetry stream. Building ordering and fan-out on top of orchestrations would add storage, coordination, and throughput bottlenecks. Only Event Hubs gives the three required properties in one service: high ingest rate, per-device order through partition keys, and independent full-stream readers through consumer groups.
Azure Event Hubs documents partition-scoped ordering and consumer-group isolation as first-class guarantees
Microsoft's Event Hubs model is explicit about the scope of its guarantees. Events are distributed across partitions and retained in each partition's log; sequence numbers are assigned within a partition. The service's ordering statement is therefore partition-scoped: events with the same partition key are written to the same partition and ordered there, while ordering across partitions is not promised. The consumer-group documentation states that a consumer group is a view of the entire event hub and that each consumer group has its own offset, which is precisely the mechanism that lets separate applications read independently without dividing the data between them. The same documentation positions Event Hubs for high-throughput event ingestion, with throughput units or processing units and partition count setting capacity. This matters because the common failure in such designs is to treat a queue as a broadcast log: a queue's session gives ordered delivery to one receiver, but not an independent cursor per application. The documented combination — partition key for order, consumer group for isolation, offset/checkpoint for pace — is what makes Event Hubs the required service here. Any implementation that puts the device ID in the body but not in the partition key, or that lets two applications share one consumer group, violates the same model even though it uses the right product.
Official Reference
- https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-features
- https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-about
These links open the official vendor documentation in a new tab.
Exam Strategy
When a scenario combines per-entity ordering with multiple independent full-stream readers, translate each phrase into a primitive before comparing services: per-entity order maps to a partition key or session, and independent readers map to consumer groups, not competing consumers. Eliminate queue options early because a completed queue message is delivered to one receiver, and eliminate push-only routers because they do not expose a retained partitioned log with per-reader offsets. The remaining service must also advertise high-throughput ingestion, which is Event Hubs' design center.
Related Analysis
Practice All AI-200 Questions
Access 69 questions with complete answers and detailed explanations.
View Full AI-200 Practice Test →