# Queue Storage

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

Cloud service · Azure. Updated 2026-11-25. Page: https://blowstack.com/tools/cloud-services-hub/queue-storage

> 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.

## 8 key features of Queue Storage

1. **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.
2. **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.
3. **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.
4. **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.
5. **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.
6. **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.
7. **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.
8. **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. **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. **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. **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. **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. **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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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)](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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.
- **[Azure ExpressRoute](https://blowstack.com/tools/cloud-services-hub/azure-expressroute)**: Queue Storage's public endpoint is reachable over ExpressRoute Microsoft peering. A storage account's firewall can allow the public NAT addresses used by the ExpressRoute connection so that on-premises workers can access the queue over the circuit.
- **[Azure Firewall](https://blowstack.com/tools/cloud-services-hub/azure-firewall)**: Azure Firewall can use the Azure Storage service tag in a network rule to allow outbound HTTPS to Queue Storage's public endpoints. The tag covers other Azure Storage endpoints as well; it does not grant access to an individual queue.
- **[Azure Key Vault](https://blowstack.com/tools/cloud-services-hub/azure-key-vault)**: Queue Storage can use a customer-managed encryption key held in Azure Key Vault. To encrypt queues with that key, configure the storage account at creation so that Queue Storage uses the account-scoped encryption key.
- **[Azure Kubernetes Service (AKS)](https://blowstack.com/tools/cloud-services-hub/azure-kubernetes-service-(aks))**: Queue Storage can drive workload scaling through the Azure Queue scaler in the AKS KEDA add-on. For example, a worker deployment can add replicas when the queue backlog grows and scale back down when it clears.
- **[Azure Lighthouse](https://blowstack.com/tools/cloud-services-hub/azure-lighthouse)**: Azure Lighthouse lets a service provider manage Queue Storage resources in a customer's delegated subscription or resource group. A delegated role can manage queue resources through the Azure control plane without granting permission to read queue messages.
- **[Azure Managed Grafana](https://blowstack.com/tools/cloud-services-hub/azure-managed-grafana)**: Queue Storage publishes metrics that Azure Managed Grafana can display through its built-in Azure Monitor data source. A dashboard can show the queue service's message count, transaction volume, and request latency.
- **[Azure Policy](https://blowstack.com/tools/cloud-services-hub/azure-policy)**: Azure Policy has built-in definitions for auditing whether Queue Storage resource logs are enabled and for deploying diagnostic settings to send those logs to a Log Analytics workspace.
- **[Azure portal](https://blowstack.com/tools/cloud-services-hub/azure-portal)**: Queue Storage has a dedicated interface in the Azure portal for creating and deleting queues and for viewing, adding, or clearing messages when the signed-in user has the required access.
- **[Azure Private Link](https://blowstack.com/tools/cloud-services-hub/azure-private-link)**: Queue Storage supports a private endpoint for the storage account's `queue` subresource. Clients can reach the queue service over a private IP address even when public network access to the storage account is disabled.
- **[Azure Resource Manager](https://blowstack.com/tools/cloud-services-hub/azure-resource-manager)**: Queue Storage queues can be provisioned and managed as `Microsoft.Storage/storageAccounts/queueServices/queues` resources. An Azure Resource Manager deployment can create a storage account and its application queues together.
- **[Azure role-based access control (Azure RBAC)](https://blowstack.com/tools/cloud-services-hub/azure-role-based-access-control-(azure-rbac))**: Queue Storage uses Azure RBAC to authorize queue and message operations for Microsoft Entra identities. For example, a managed identity can receive and delete messages from a specific queue through the Storage Queue Data Message Processor role.
- **[Azure Spring Apps](https://blowstack.com/tools/cloud-services-hub/azure-spring-apps)**: Queue Storage is a supported Service Connector target for Azure Spring Apps. The connector supplies the queue endpoint and authentication configuration so a Spring application can send or receive messages using a managed identity or another supported credential.
- **[Azure Stack Hub](https://blowstack.com/tools/cloud-services-hub/azure-stack-hub)**: Azure Stack Hub provides Queue Storage as a local storage service. Applications can enqueue and process work using the Stack Hub deployment's own queue endpoint instead of a public Azure region.
- **[Azure Virtual Machine Scale Sets](https://blowstack.com/tools/cloud-services-hub/azure-virtual-machine-scale-sets)**: Queue Storage backlog can drive autoscale rules for a virtual machine scale set. For example, a scale set can add worker VMs when the number of queued messages per instance exceeds a threshold.
- **[Azure Virtual Network](https://blowstack.com/tools/cloud-services-hub/azure-virtual-network)**: Queue Storage can restrict access to selected virtual network subnets using Azure Storage service endpoints and storage account network rules. This lets workers in approved subnets reach the queue service without opening it to all networks.
- **[Event Hubs](https://blowstack.com/tools/cloud-services-hub/event-hubs)**: Queue Storage diagnostic settings can stream resource logs to Event Hubs. A downstream consumer can then process records of queue read, write, and delete operations without polling Queue Storage.
- **[Logic Apps](https://blowstack.com/tools/cloud-services-hub/logic-apps)**: Queue Storage can start a Logic Apps workflow when messages are available. The Azure Queues connector also provides actions to add, get, and delete messages, so a workflow can process a work item and remove it after processing succeeds.
- **[Microsoft Defender for Cloud](https://blowstack.com/tools/cloud-services-hub/microsoft-defender-for-cloud)**: Microsoft Defender for Cloud assesses security settings on the storage account that hosts Queue Storage. Its recommendations can identify account-level settings that affect queues, such as unrestricted network access or enabled Shared Key authorization.
- **[Microsoft Sentinel](https://blowstack.com/tools/cloud-services-hub/microsoft-sentinel)**: Queue Storage can send diagnostic logs to the Log Analytics workspace used by Microsoft Sentinel. Sentinel analytics rules can use the `StorageQueueLogs` table to detect activity such as repeated authorization failures or unexpected message deletions.

## Alternatives to Queue Storage in other clouds

### AWS

**[Amazon Simple Queue Service (Amazon SQS)](https://blowstack.com/tools/cloud-services-hub/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.

| | Queue Storage | Amazon Simple Queue Service (Amazon SQS) |
| --- | --- | --- |
| Strict FIFO ordering | Not supported | Available with FIFO queues |
| Native dead-letter queues | Not supported | Supported |
| Message retention | 7 days default; can be nonexpiring | 4 days default; up to 14 days |
| Queue usage charges | Operations and stored data | Billable API requests |

Compared Nov 2026.

## What is Queue Storage

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.
