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.