liveBook · Manning

Azure Storage Queues

As explained in Microsoft Azure in Action

Queue storage is a storage service that holds messages for asynchronous processing between producers and consumers.

When producers generate work faster than consumers can handle it, Azure Storage Queues provide a holding line for messages. Producers add messages at the back; consumers retrieve them from the front, in order. Each message is a data object up to 64 KB, and a storage account can hold millions of messages within its capacity. section 5.5

A queue lives inside an Azure storage account alongside blob, file, and table storage. That makes it a practical fit for separating workloads by project or department without introducing another kind of account. In the Banning Books scenario, incoming book orders wait in the queue instead of overwhelming order processing. section 5.5 section 5.2

Keep these operational details in view:

  • Use an existing storage account or create one first; the queue uses that account’s context. section 5.5 section 5.2
  • Expect a cost-effective option, particularly when the storage account already supports other data services. section 5.5
  • Treat access permissions as part of setup: the queue receives a public HTTP/HTTPS URI, but access depends on configured permissions. section 5.5

Buffering a book order

Create a queue named bannedorderqueue with New-AzStorageQueue, construct a CloudQueueMessage such as “Banned book order 123456,” and add it asynchronously. A consumer can then retrieve the queued message with GetMessageAsync when ready.

How Microsoft Azure in Action covers it

How deep it goes
Explains ordered message flow, 64 KB messages, capacity, creation, insertion, retrieval, access, and cost, without deeper service internals.
Examples
Demonstrates Banning Books orders, a named queue, CloudQueueMessage creation, asynchronous insertion, and PowerShell retrieval.
What it assumes
Assumes a storage account and permissions, while introducing queue behavior and message handling from the basics.
What you can do after
Operate Azure Queue Storage with PowerShell by creating queues, adding messages, and retrieving queued work.
How it connects
Connects queues to storage accounts, blob storage, file storage, table storage, PowerShell, and asynchronous processing.

Also explained in

Compare how 2 books explain Azure Storage Queues →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Microsoft Azure in Action. The section links point to the parts of the book it draws on.