Cloud service · Azure · Updated

Queue Storage - Azure Queue Storage is a managed service for storing messages that application components process asynchronously.

In short

Queue Storage provides durable work queues within an Azure storage account, allowing producers and consumers to operate and scale independently. It supports authenticated REST and SDK access, visibility-based retries, and configurable message retention, but does not provide strict FIFO ordering or exactly-once processing.

Cloud Services Hub →

8 key features of Queue Storage

01
Durable asynchronous work queues

Store pending work independently of producer and consumer availability. Multiple worker instances can receive from the same queue to distribute processing, within queue and storage account throughput targets.

02
Visibility-based processing and retries

Receiving a message temporarily hides it rather than removing it. Delete it after successful processing, or update its visibility timeout while work continues; expired visibility allows another processing attempt.

03
Configurable retention and delayed availability

Messages have a default seven-day time-to-live, with positive custom lifetimes or nonexpiring retention supported by modern service versions. An initial visibility delay can defer when a message first becomes available without providing precise execution-time guarantees.

04
REST API and Azure SDK access

Create queues and send, receive, peek, update, and delete messages through authenticated APIs. SDKs provide credential integration and retry support, but applications remain responsible for idempotency and failed-message handling.

05
Identity-based and delegated access

Authorize applications through Microsoft Entra ID and Azure RBAC queue data roles. User delegation SAS supports time-limited delegated access without distributing account keys; use supported API and SDK versions when adopting it.

06
Storage account redundancy

Choose supported LRS, ZRS, or geo-redundant configurations according to availability and recovery requirements. Redundancy applies to the storage account rather than individual queues, and asynchronous geo-replication can leave a recovery-point gap.

07
Network access controls

Restrict access with storage account firewall rules and private endpoints for the queue service. Configure private DNS and worker connectivity alongside identity permissions; network access alone does not authorize queue operations.

08
Operational metrics and logs

Use Azure Monitor to inspect transaction counts, availability, latency, capacity, and diagnostic resource logs. Add application telemetry for processing duration, retries, and message age because storage metrics alone do not describe end-to-end job completion.

Where Queue Storage is used

  1. 01
    Background processing behind an API

    An API validates a report request, enqueues its job identifier, and returns a tracking response. Workers generate the report and update a separate status store, keeping lengthy processing outside the HTTP request.

  2. 02
    Buffering bursts of incoming work

    Place work in a queue when requests arrive faster than downstream systems can process them. Scale consumers against backlog and processing time while capping concurrency to protect databases and external APIs.

  3. 03
    Media and document processing

    Store uploaded files in Blob Storage and enqueue references for thumbnail generation, document conversion, or metadata extraction. Keep large binary payloads out of messages and make processing safe to repeat.

  4. 04
    Retryable integration jobs

    Queue synchronization tasks for downstream systems that experience intermittent outages or rate limits. Apply retry delays, track attempt counts, and isolate permanently failing work in an application-managed poison queue.

  5. 05
    Multitenant work isolation

    Use separate queues for tenants or workload classes when independent access policies and backlogs are useful. Separate storage accounts where stronger capacity, security, or operational isolation is required, since queues in one account share account-level limits.

How Queue Storage is priced

Stored data consumption

Stored queue data is billed by capacity over time rather than by provisioned worker capacity. Rates depend on region and storage redundancy; long retention periods and persistent backlogs increase storage consumption.

Metered queue operations

Queue operations are billed by transaction category, typically quoted per 10,000 operations. Enqueueing, receiving, updating visibility, deleting, and polling empty queues can all contribute to costs, so include retry traffic and idle polling in estimates.

Data transfer and supporting services

Applicable outbound and cross-region data transfer charges are additional to storage and operation charges. Worker compute, private endpoints, and Azure Monitor log ingestion or retention are billed separately under their respective services.

Services Queue Storage works with

A common architecture combines an HTTP-facing application, Queue Storage, and independently scaled workers hosted in Azure Functions or Azure Container Apps. The application enqueues a compact job envelope containing a stable job ID, schema version, and payload reference. Workers process messages, persist results in a separate data store, and delete messages only after successful completion. Managed identities and queue-scoped data roles separate producer and consumer permissions.

Blob Storage complements queues when inputs exceed the 64 KiB message limit. Upload the payload before enqueueing its reference, and use reconciliation or an outbox-style design where needed to address failures between related writes. Event Grid can deliver supported resource events into a storage queue, allowing polling consumers to process them independently of event arrival rates. Neither integration removes the need for idempotency or poison-message handling.

Use Azure Monitor alongside application telemetry to distinguish storage failures from slow or failing consumers. Track backlog, processing latency, retries, and oldest-message age, and set scaling limits around downstream capacity. For private deployments, configure queue private endpoints, DNS resolution, and worker network access together; monitor logs and compute hosting incur separate costs.

Azure Functions

Use a Queue Storage trigger to invoke a function when messages become available, and an output binding to enqueue follow-up work. For example, a function can consume image-processing requests and write thumbnail locations to a status store. Configure concurrency, visibility settings, retry limits, and poison-message handling, and ensure producers and bindings agree on message encoding.

Azure Blob Storage

Use the claim-check pattern by storing large payloads in blobs and placing only their identifiers in queue messages. For example, enqueue a document's blob name and job ID for a conversion worker rather than embedding the document. Authorize blob access separately, and coordinate lifecycle cleanup with retries and message retention because blob writes and queue sends are not one atomic transaction.

Azure Container Apps

Run containerized consumers with an Azure Queue Storage scale rule to adjust replica counts according to queue length. For example, scale document-conversion workers as a backlog grows while limiting replicas to protect a downstream database. Configure queue authentication, consumer concurrency, and visibility renewal independently of the scaling rule.

Event Grid

Configure an Event Grid subscription with an Azure Storage queue as its delivery destination to buffer supported events for polling consumers. For example, deliver BlobCreated events to a queue and let workers inspect each event before processing the referenced blob. Event Grid delivery can be duplicated or reordered, so consumers must validate the event schema and handle repeated events safely.

Azure Monitor

Route queue service resource logs through diagnostic settings and use Azure Monitor metrics for request failures, latency, and storage usage. For example, alert on sustained throttling and correlate failed requests with worker traces using client request IDs. Publish custom metrics for oldest-message age and job completion latency to detect processing stalls that request metrics do not reveal.

Microsoft Entra ID (formerly Azure AD)

Authenticate producers and consumers through managed identities and grant queue data-plane roles at the narrowest practical scope. For example, give an API the Storage Queue Data Message Sender role and a worker the Storage Queue Data Message Processor role on its queue. Where clients require delegated access, an authorized application can obtain a user delegation key and issue short-lived SAS tokens without sharing storage account keys.

App Service

Queue Storage can trigger an App Service WebJob through the WebJobs queue binding. For example, a web app can enqueue an image-processing request and let a WebJob handle it in the background.

Azure App Testing

Queue Storage exposes request and latency metrics that Azure Load Testing can track as server-side metrics during a load test. For example, a test can show whether queue request latency rises as the application receives more traffic.

Azure Data Explorer

Queue Storage holds ingestion requests for Azure Data Explorer's queued ingestion service. The Azure Data Explorer ingestion client places a request identifying staged data on an ingestion queue, and the service processes it asynchronously.

Azure DNS

Queue Storage uses the Azure Private DNS zone `privatelink.queue.core.windows.net` for private endpoint name resolution. Clients in a linked virtual network can use the normal Queue Storage hostname and resolve it to the private endpoint's address.

Alternatives to Queue Storage in other clouds

AWS

Amazon Simple Queue Service (Amazon SQS)Amazon Simple Queue Service (Amazon SQS)

Amazon SQS and Azure Queue Storage are managed queues that let applications process work asynchronously and retry messages that aren’t deleted after receipt. Amazon SQS offers strict ordering with FIFO queues, while Azure Queue Storage does not; Azure Queue Storage can retain messages indefinitely, while Amazon SQS retention is capped at 14 days.

Compare fact by fact
Queue StorageAmazon Simple Queue Service (Amazon SQS)
Strict FIFO orderingNot supportedAvailable with FIFO queues
Native dead-letter queuesNot supportedSupported
Message retention7 days default; can be nonexpiring4 days default; up to 14 days
Queue usage chargesOperations and stored dataBillable API requests

What is Queue Storage

2 min read

Azure Queue Storage stores messages in named queues within an Azure storage account. Producers enqueue work, and consumers retrieve and process it independently. This supports web-queue-worker architectures in which an API accepts a request, records a job, and returns before background processing finishes. Queues can hold millions of messages, subject to storage account capacity and service scalability targets.

Use a Standard general-purpose v2 storage account for new deployments. Queue names must be lowercase and comply with Azure Storage naming rules. Applications access queues through HTTPS endpoints and Azure SDKs for languages including .NET, Java, JavaScript, Python, and Go. Reuse SDK clients and configure bounded retries with exponential backoff for transient failures and throttling.

Each message can be up to 64 KiB. If your application or binding uses Base64 encoding, account for its size overhead when calculating the available payload size. For larger inputs, store the payload in Blob Storage and enqueue a reference containing the blob identifier, job identifier, and required processing metadata. Coordinate payload retention with message retention so that consumers do not receive references to deleted data.

Receiving a message does not delete it. Instead, the message becomes temporarily invisible to other consumers for a visibility timeout. After successful processing, delete it using its message ID and current pop receipt. If processing fails or the worker stops, the message becomes available again after the timeout. Long-running workers should update visibility before it expires and retain the latest pop receipt returned by the service.

Design for at-least-once delivery and possible out-of-order processing. Use stable business identifiers and idempotent updates to prevent duplicate side effects. Queue Storage does not provide built-in duplicate detection, transactional messaging, or a native dead-letter queue. Custom consumers should inspect the dequeue count and move repeatedly failing messages to a separate poison queue; Azure Functions queue triggers provide their own configurable retry and poison-message behavior. Choose Azure Service Bus when broker features such as sessions, transactions, or native dead-lettering are required.

Messages expire after seven days by default. With service version 2017-07-29 or later, applications can specify a positive time-to-live or use -1 for messages that do not expire. Retention and initial visibility delays are separate controls. Set both deliberately so delayed or backlogged work remains available for the intended processing window.

Prefer Microsoft Entra authentication with managed identities and queue data-plane roles. Use narrowly scoped, short-lived shared access signatures when delegated access is necessary. Configure storage firewall rules or a queue private endpoint where network isolation is required. Select redundancy at the storage account level: ZRS protects against availability-zone failures, while supported geo-redundant options add asynchronous cross-region replication. Monitor request failures, throttling, queue backlog, and application-measured message age; geo-replication does not replace an application recovery plan.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.