Total Page Preview:   000000006075

Difference between Storage Queues and Service Bus queues in azure

In this article I am going to explain difference between  Storage Queues and Service Bus queues in azure cloud
The tables in the following sections provide a logical grouping of queue features and let you compare, at a glance, the capabilities available in both Azure Queues and Service Bus queues.
This section compares some of the fundamental queuing capabilities provided by Storage Queues and Service Bus queues

Difference Between  Storage Queues and Service Bus queues:

Comparison Criteria  Storage Queues Service Bus Queues
Ordering guarantee No
For more information, see the first note in the “Additional Information” section.
Yes - First-In-First-Out (FIFO)
(through the use of messaging sessions)
Delivery guarantee At-Least-Once At-Most-Once.
Atomic operation support No. Yes.
Receive behavior Non-blocking
(completes immediately if no new message is found)

Blocking with/without timeout
(offers long polling, or the"Comet technique")

(through the use of .NET managed API only)

Push-style API No. Yes
OnMessage and OnMessagesessions .NET API.
Receive mode Peek & Lease Peek & Lock
Receive & Delete
Exclusive access mode Lease-based. Lock-based.
Lease/Lock duration 30 seconds (default)
7 days (maximum) (You can renew or release a message lease using the Update Message API.)

60 seconds (default)

You can renew a message lock using the Renew Lock API.

Lease/Lock precision Message level
(each message can have a different timeout value, which you can then update as needed while processing the message, by using theUpdateMessage API) .

Queue level

(each queue has a lock precision applied to all of its messages, but you can renew the lock using theRenewLock API.)

Batched receive Yes
(explicitly specifying message count when retrieving messages, up to a maximum of 32 messages) .
(implicitly enabling a pre-fetch property or explicitly through the use of transactions)
Batched send No Yes
(through the use of transactions or client-side batching)

Advanced Capabilities between Storage Queues and Service Bus queues:

Comparison Criteria Storage Queues Service Bus Queues
Scheduled delivery Yes Yes
Automatic dead lettering No Yes.
Increasing queue time-to-live value No.
(via in-place update of visibility timeout)
(provided via a dedicated API function)
Poison message support Yes Yes
In-place update Yes Yes
Server-side transaction log Yes No
Storage metrics Yes.
Minute Metrics: provides real-time metrics for availability, TPS, API call counts, error counts, and more, all in real time (aggregated per minute and reported within a few minutes from what just happened in production. For more
(bulk queries by calling Get Queues)
State management No Yes


Message auto-forwarding No Yes
Purge queue function Yes No
Message groups No Yes
(through the use of messaging sessions)
Application state per message group No Yes
Duplicate detection No Yes
(configurable on the sender side)
WCF integration No Yes
(offers out-of-the-box WCF bindings)
Browsing message groups No Yes
Fetching message sessions by ID No Yes

Capacity and quotas between Storage Queues and Service Bus queues:

Comparison Criteria Storage Queues Service Bus Queues
Maximum queue size 180TB 1 GB to 80 GB
Maximum message size 64 KB 256 KB or 1 MB.
Maximum number of queues Unlimited. 10,000.
(per service namespace, can be increased)
Maximum number of concurrent clients Unlimited Unlimited
(100 concurrent connection limit only applies to TCP protocol-based communication)

Authentication and authorization between Storage Queues and Service Bus queues:

Comparison Criteria Storage Queues Service Bus Queues
Authentication Symmetric key Symmetric key
Security model Delegated access via SAS tokens. SAS.
Identity provider federation No. 1Yes

Management and operations between Storage Queues and Service Bus queues:

Comparison Criteria Azure Queues Service Bus Queues
Management protocol REST over HTTP/HTTPS REST over HTTPS
Runtime protocol REST over HTTP/HTTPS REST over HTTPS

AMQP 1.0 Standard (TCP with TLS)
.NET Managed API Yes

(.NET managed Storage Client API)

(.NET managed brokered messaging API)
Native C++ Yes No
Java API Yes Yes
Node.js API Yes Yes
Arbitrary metadata support Yes No
Queue naming rules Up to 63 characters long

(Letters in a queue name must be lowercase.)
Up to 260 characters long

(Queue paths and names are case-insensitive.)
Get queue length function Yes

(Approximate value if messages expire beyond the TTL without being deleted.)

(Exact, point-in-time value.)
Peek function Yes Yes


Brijesh Kumar

Thank You

About Author

Brijesh Kumar

Database Developer

I have more then 6 years Experience in Microsoft Technologies - SQL Server Database, ETL Azure Cloud - Azure SQL Database, CosmosDB, Azure Data Factory, PowerBI, Web Job, Azure Function, Azure Storage, Web Apps, Powershall and Database Migration On-Premise to Azure Cloud.
LinkedIn :


Navneet Mishra
Nice Articles. Move forward for gr8 future.
I have read so many articles regarding the blogger lovers except this piece of writing is in fact a pleasant article, keep it up.




Facebook User: