Questions? Feedback? powered by Olark live chat software
Skip Navigation

Queue storage

Reliable messaging for scenarios including workflow processing or communication between application components

Customers using Queue storage

Handle traffic bursts

Azure Queue storage helps your applications absorb unexpected traffic bursts and can prevent servers from being overwhelmed by a sudden flood of requests. Instead of getting dropped, incoming requests are buffered in the queue until servers catch up—so traffic bursts don’t take down your applications.

Handle traffic bursts

Scale applications more effectively

Queue storage directly reflects how well servers are processing front-end requests. Assigning resources dynamically based on queue length enables optimal resource utilization.

Scale applications more effectively

Build more flexible applications

Queue storage allows application components—any piece of code that performs some function for your application—to communicate but not depend on each other, so you can create decoupled components that run in the cloud, on the desktop, on premises, or on mobile devices. Queues help make your application more scalable and less sensitive to individual component failure: if a component crashes, Queue storage can buffer requests until it’s back up and able to process them again.

Build more flexible applications

Productive development experience

CloudStorageAccount storageAccount = CloudStorageAccount.Parse
("DefaultEndpointsProtocol=https;AccountName=your_account;AccountKey=your_account_key");

CloudQueueClient queueClient = storageAccount.CreateCloudQueueClient();

CloudQueue queue = queueClient.GetQueueReference("myqueue");

await queue.CreateIfNotExistsAsync();

await queue.AddMessageAsync(new CloudQueueMessage("Hello World!"));

CloudQueueMessage peekedMessage = await queue.PeekMessageAsync();

Console.WriteLine("The peeked message is {0}", peekedMessage.AsString);

CloudQueueMessage retrievedMessage = await queue.GetMessageAsync();

await queue.DeleteMessageAsync(retrievedMessage);

Code sample for adding a message to a queue using the .NET Client Library.

Azure Storage provides rich client libraries for building apps with .NET, Java, Android, C++, Node.js, PHP, Ruby, and Python. The client libraries make interaction with queues a simple and straightforward process while providing support for application component failures. Data in Azure Storage is also accessible via the REST API, which can be called by any language that makes HTTP/HTTPS requests.

Start using Queue storage