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:

  1. Create a new Azure project called Chapter16.QueueTest with ...

Get Introducing .NET 4.0: with Visual Studio 2010 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.