Questions about Azure? Contact our sales team.
United States: 1-800-867-1389
United States: 1-800-867-1389
Questions about Azure? Contact our sales team.
United States: 1-800-867-1389
United States: 1-800-867-1389
Sign up for free and get $200 to spend on all Azure services
Learn moreGet credits that enable:
4 Windows or Linux Virtual Machines
24 x 7 for a month
And much more...
Learn moreConnect Virtual Machines with Virtual Network for free.
Learn moreGet credits that enable:
8 standard SQL Databases
Hadoop instance for a week
And much more...
Learn moreGet credits that enable:
8 standard SQL Databases
Hadoop instance for a week
And much more...
Learn moreCortana Intelligence
Learn how to transform your business with big data and advanced analytics
Learn moreGet credits that enable:
Store 500,000 objects in Active Directory
Multi-factor auth with 100 users
And much more...
Learn moreSign up for free and get $200 to spend on all Azure services
Learn moreSign up for free and get $200 to spend on all Azure services
Learn moreGet credits that enable:
4 Windows or Linux Virtual Machines
24 x 7 for a month
And much more...
Learn moreConnect Virtual Machines with Virtual Network for free.
Learn moreGet credits that enable:
8 standard SQL Databases
Hadoop instance for a week
And much more...
Learn moreGet credits that enable:
8 standard SQL Databases
Hadoop instance for a week
And much more...
Learn moreSign up for free and get $200 to spend on all Azure services
Learn moreGet credits that enable:
Store 500,000 objects in Active Directory
Multi-factor auth with 100 users
And much more...
Learn moreSign up for free and get $200 to spend on all Azure services
Learn moreSign up for free and get $200 to spend on all Azure services
Learn moreSign up for free and get $200 to spend on all Azure services
Learn moreSign up for free and get $200 to spend on all Azure services
Learn moreAzure 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.
Queue storage directly reflects how well servers are processing front-end requests. Assigning resources dynamically based on queue length enables optimal resource utilization.
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.
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.



