Azure Queue Storage Overview

Azure Queue Storage is a service that stores large numbers of messages that can be accessed from anywhere in the world via HTTP or HTTPS. A queue is a collection of messages. A queue can hold any type of message up to 64 KB in size. A queue can hold up to millions of messages. The total capacity of a storage account is determined by the subscription limits.

Key Concepts

  • Messages: A message is an item of data that can be stored in a queue. Each message can be up to 64 KB.
  • Queues: A queue is a collection of messages. The order of messages in a queue is FIFO (First-In, First-Out), but the order is not guaranteed after dequeuing.
  • Storage Account: A queue resides within an Azure storage account.
  • Regions: Queue Storage is available in all Azure regions.

When to Use Queue Storage

Queue Storage is ideal for decoupling applications and services. Common scenarios include:

How Queue Storage Works

When a client adds a message to a queue, the message is returned with a message identifier and a visibility timeout. The visibility timeout is a duration of time during which the message remains invisible in the queue. This ensures that if the client processing the message crashes or fails, another client can later retrieve the message and process it. When the client has successfully processed the message, it deletes the message from the queue.

Message States:

Core Operations

The primary operations for Azure Queue Storage are:

Example: Adding a message

POST https://myaccount.queue.core.windows.net/myqueue/messages?popreceipt=rlq0bwsb3u1%2bza2v5w%3d%3d&st=2023-10-27T21%3a29%3a40z&se=2023-10-27T22%3a04%3a40z&sp=raud&sv=2020-08-04&sr=q&sig=xyz
"This is the first message"

Considerations:

Queue Storage does not guarantee FIFO order once messages are dequeued. For guaranteed order, consider Azure Service Bus Queues.

Key Features

Learn More