Azure Queue Storage
What it is
Azure Queue Storage stores messages that represent work waiting to be processed. A sender adds a small message to a queue; a worker later retrieves and processes it. This separates the sender from the pace of the work, so a busy website does not have to wait for every slow task to finish.
Why it exists
An online order can be accepted quickly while a separate worker prepares a receipt, resizes an image, or notifies a warehouse. The queue absorbs a temporary burst of work and lets workers process it asynchronously.
Key ideas
- A queue belongs to a storage account and holds messages. A message is data describing work, not the work result itself.
- A worker receives a message, processes it, then deletes it only after successful handling. While processing, a visibility timeout can hide it from other workers for a period.
- Design workers to tolerate duplicate delivery and retries. A message can become visible again if processing fails or the visibility timeout expires.
- Queue Storage is a simple Azure Storage messaging service. Compare it with Azure Service Bus when a requirement needs richer messaging features or protocols.
Northwind example
After Northwind accepts an order, the website adds create-receipt: order-1042 to a queue. It returns confirmation to the shopper without waiting for receipt generation. A worker reads the message, creates the receipt blob, and deletes the message when complete. If the worker fails halfway through, the message can reappear, so the worker must avoid creating duplicate customer charges or duplicate warehouse work.
Common confusion
- A queue is not a database table, log, or permanent archive. Set a suitable message lifetime and store durable business records separately.
- Receiving a message does not mean it is permanently removed. Delete it after successful processing.
- “Asynchronous” does not mean “guaranteed exactly once.” Build idempotent processing and monitoring for delayed or poison messages.
Related
storage-account · service-bus · azure-functions · function-triggers · northwind-traders-case-study
Sources and re-audit
- Microsoft Learn — Introduction to Azure Queue Storage, checked 2026-09-16.