Azure Queue Stroage
What Is Queue Storage
Queue storage in azure is a service for storing large numbers of messages that can be accessed from anywhere in the world through authenticated calls. It can be either using HTTP or HTTPS.A single queue message can be up to 64 KB size, and a queue can contain millions of messages, up to the total capacity limit of a storage account.
Various uses of Queue Storage are:
1. To process asynchronously , creating a backlog of work.
2. From web role to worker role in azure, we can easily passing messages.
Azure Queues are queues located in the Microsoft cloud which you can use for exchanging messages between components either in the cloud or on premise.
Creation Of Queue
A message is typically represents a task created by someone called "producer" that has to be processed by someone else called "consumer". Each message has a small body and some attributes, which you can use for configuring your service. As azure ensures that a message is invisible to other listeners, you could imagine many producers and many consumers as well as one-to-one scenarios. The main architectural benefit is loose coupling ,more about advantages and scenarios later in this article.
This is a code for creating a queue.Using a Storage ConnectionString we can retrive storage account from connection string.
Then next we can add messages to the created queue.The following code will demonstrate it.
Delete A Queue
We can delete a queue using the following code: