Home › Studies › Azure Service Comparisons › Azure Messaging Services Compared

Azure Messaging Services Compared

Service Bus, Event Grid, Event Hubs or Storage queues? Pick by what you send: a message with a contract or an event that says something happened.

By tools4free.dev · Last reviewed 4 December 2026

Short answer: pick the service by what the thing you send is. A message is raw data with a contract between sender and receiver, such as an order. Use Service Bus when you need ordering, transactions, duplicate detection or dead-lettering, and Storage queues when you only need a simple, large backlog of work. An event is a notification that something happened. Use Event Grid to react to a state change and Event Hubs to ingest a high-volume stream of telemetry. Exam questions hide this distinction behind words such as "order", "telemetry", "blob created" and "background job".

tools4free.dev is not affiliated with, endorsed by or sponsored by Microsoft. Facts on this page come from Microsoft Learn pages listed under Sources. Features and limits change, so confirm details on Microsoft Learn before you rely on them.

Events versus messages

Microsoft's comparison article starts with this split, and most exam answers follow from it.

Event Grid and Event Hubs deal in events. Service Bus and Storage queues deal in messages. Event Grid handles discrete events; Event Hubs handles event streams.

Comparison table

DimensionService BusStorage queuesEvent GridEvent Hubs
Primary purposeEnterprise transactional messagingLarge backlog of work to process asynchronouslyReactive event routingBig data streaming and ingestion
Data modelMessages (high-value payloads)Messages up to 64 KBEvents (discrete notifications)Event streams (time-ordered series)
Delivery guaranteeAt least once; at most once in ReceiveAndDelete modeAt least onceAt least onceAt least once
OrderingFIFO by using sessionsNot guaranteedNo guaranteePer partition
TransactionsYesNoNoNo
Duplicate detectionYesNoNoNo
Dead-letteringYes (automatic)No (you build your own, using the dequeue count)YesNo
Publish-subscribeTopics and subscriptionsNo (point-to-point queue)YesConsumer groups
ProtocolsAMQP 1.0, HTTPHTTP or HTTPSMQTT, HTTPApache Kafka, AMQP 1.0, HTTPS
Capture or replayNoNoNoYes (Event Hubs Capture)
Scaling modelMessaging units (Premium)Up to the storage account capacity limitAutomatic (serverless)Throughput units or processing units

The Service Bus, Event Grid and Event Hubs columns come from Microsoft's "Compare messaging services" article. The Storage queues column comes from "Compare Azure Storage queues and Service Bus queues" and the Queue Storage introduction.

Choose Service Bus when…

Service Bus is a fully managed enterprise message broker with queues and publish-subscribe topics. Microsoft's guidance lists these reasons to pick it over a Storage queue:

Service Bus receives in pull mode, and a pull can be long-lived and complete only when a message arrives, so consumers do not need to busy-poll. Once the broker accepts a message it holds it durably in triple-redundant storage, spread across availability zones if the namespace is zone-enabled.

Choose Storage queues when…

Queue Storage is part of Azure Storage. A message can be up to 64 KB, and a queue can hold millions of messages, up to the capacity limit of the storage account. Microsoft recommends considering it when:

Be aware of what you give up. Storage queues are typically FIFO but can be out of order, for example when a message's visibility timeout expires after a worker crashes and it becomes visible again. There is no automatic dead-lettering. To find poison messages you check the dequeue count and move the message yourself to an application-defined queue. Receive is non-blocking: it completes immediately when no message is found. By default a message lives for seven days; with version 2017-07-29 or later you can set any positive time-to-live or -1 for no expiry.

Choose Event Grid when…

Event Grid is a scalable publish-subscribe service that uses MQTT and HTTP. It supports the CloudEvents 1.0 specification. Think of it as the wiring that says "when X happens, tell Y". Words that point to it: "react to", "trigger a function when a blob is created", "notify subscribers of a state change", "serverless", "partner SaaS events", "MQTT".

Choose Event Hubs when…

Event Hubs is a fully managed, real-time data streaming platform that can ingest millions of events per second with low latency. It supports Apache Kafka, AMQP 1.0 and HTTPS. Words that point to it: "telemetry", "clickstream", "log aggregation", "millions of events per second", "Kafka", "real-time analytics", "replay", "stream".

Worked scenarios

Scenario 1: order processing

Requirement: a retailer's checkout sends orders to a back-end system. Orders from the same customer must be processed in the order they were placed. An order must never be processed twice if the sender retries. Orders that repeatedly fail must be set aside for an operator.

Answer: Service Bus queue with sessions, duplicate detection and the dead-letter queue.

Why the others fail: Storage queues give no ordering guarantee, no duplicate detection and no automatic dead-lettering. Event Grid has no ordering guarantee, no transactions and no duplicate detection. Event Hubs keeps order only per partition, has no duplicate detection and no dead-lettering. The orders are messages with a contract, not notifications.

Scenario 2: react to uploads

Requirement: when a file is created in a storage account, an Azure Function must run to process it. The solution must be serverless and need no polling.

Answer: Event Grid with an event subscription that pushes the storage event to the function.

Why the others fail: a blob being created is a discrete notification of a state change, which is Event Grid's job and an Azure service is a built-in event source. Service Bus would need extra code to send a message for each upload. Event Hubs is built for high-volume streams, not one-off reactions. A Storage queue would need a polling worker.

Scenario 3: device telemetry

Requirement: thousands of sensors send readings continuously. A stream analytics job processes them in real time, and the raw data must also be archived to Azure Data Lake Storage. The team already has Apache Kafka producers.

Answer: Event Hubs, with Capture enabled for the archive.

Why the others fail: Event Hubs is the only one of the four with Kafka protocol support and a built-in capture feature. Service Bus is designed for high-value transactional messages rather than telemetry streams. Event Grid does not offer capture or replay. A Storage queue has a 64 KB message limit and no stream semantics such as consumer groups.

Scenario 4: background job backlog

Requirement: a web front end drops image-resize jobs onto a queue. Workers process them at their own pace. The backlog can grow past 80 GB, and the team wants server-side logs of every transaction against the queue. Ordering does not matter.

Answer: Azure Queue Storage.

Why the others fail: Microsoft lists "store over 80 gigabytes of messages in a queue" and "server side logs of all of the transactions" as reasons for Storage queues. It also says Service Bus queues suit queues that do not grow larger than 80 GB. Event Grid and Event Hubs deliver events, not a work backlog with per-message leases.

Common traps

Quick decision list

FAQ

Can I use Service Bus for telemetry?

You can, but Microsoft positions Event Hubs for telemetry, distributed data streaming and real-time analytics. Service Bus is positioned for order processing, financial transactions and workflows.

Which services support publish-subscribe?

Three do in different forms: Event Grid (publish-subscribe), Event Hubs (consumer groups) and Service Bus (topics and subscriptions). A Storage queue is a point-to-point queue.

Which services support the MQTT protocol?

Event Grid supports MQTT and HTTP. Service Bus uses AMQP and HTTP. Event Hubs uses Apache Kafka, AMQP and HTTPS.

How long does Event Hubs keep data?

Microsoft's overview lists up to 7 days on Standard and up to 90 days on Premium and Dedicated. Capture can copy the stream to storage for longer retention.

How big can a message be?

A Storage queue message is up to 64 KB. Service Bus queues handle larger messages; Microsoft says up to 256 KB or 1 MB depending on tier, and up to 100 MB with large message support on Premium.

Related topic pages on this site

Sources