Microsoft Docs

Queue Storage Concepts

Azure Queue Storage is a service that stores large numbers of small messages. This means that you can store reservations in the queue to be processed later. Each message in a queue is approximately 64 KB in size, and a queue can contain any number of messages. The total capacity of a storage account is typically 500 TB.

Key Concepts

Message Lifecycle

Messages in a queue follow a specific lifecycle:

  1. Added: A client adds a message to the queue.
  2. Dequeued: A client retrieves a message from the queue. When a message is dequeued, it is made invisible to other clients for a specified period (visibility timeout).
  3. Processed: The client that dequeued the message performs the necessary operations on it.
  4. Deleted: After the message is successfully processed, the client explicitly deletes it from the queue. If the message is not deleted within the visibility timeout, it becomes visible again and can be dequeued by another client.

Operations

The Queue Storage service supports several operations:

Note: Messages can be around for a long time in the queue if not deleted. It's crucial to implement robust error handling and retry mechanisms to ensure messages are processed and removed correctly.

Use Cases

Queue Storage is ideal for decoupling application components and asynchronous task processing. Common use cases include:

For more detailed information, refer to the official Azure Queue Storage Documentation.