16.11. Queues
Queues are an important concept in Azure storage, and they consist of an unlimited number of messages that are generally read in the order they are added (the Azure documentation says this is not guaranteed). Messages are removed as they are read, so if you don't want this to occur, make sure you use the peek method instead.
Messages can be up to 8KB in size each, so if you need more space than this, you can use a blob field and link the two by using the blob's metadata. Messages added to queues have a default timeout of seven days (called time to live). After that passes, then they will be destroyed.
You will create a new application to add and read items from a queue:
Create a new Azure project called Chapter16.QueueTest with ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access