Book Image

Microsoft Azure Development Cookbook Second Edition

Book Image

Microsoft Azure Development Cookbook Second Edition

Overview of this book

Table of Contents (15 chapters)
Microsoft Azure Development Cookbook Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Managing Azure Storage queues


The Azure Storage Service partitions data to provide scalability and has a lower scalability target for data in a single partition than for a storage account. The queue service stores each queue in its own partition. At the time of writing, the scalability target for a single queue is 2,000 messages per second, while the scalability target for an entire storage account is up to 20,000 messages per second. Consequently, scalability may be improved by using multiple queues.

In the Azure Storage library, the CloudQueue class provides both synchronous and asynchronous methods to manage queues and the messages in them. These include methods to create, delete, and clear queues. Although queues may have metadata associated with them, only the queue name is needed to create a queue. The queue name may comprise only lowercase letters, numbers, and the dash character.

In this recipe, we'll learn how to manage queues.

Getting ready

This recipe assumes the following code is...