O'Reilly logo

Microsoft Windows Azure Development Cookbook by Neil Mackenzie

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding messages to a queue

The CloudQueue class in the Windows Azure Storage Client Library provides both synchronous and asynchronous methods to add a message to a queue. A message comprises up to 8192 bytes of data. By default, the Storage Client library Base64 encodes message content to ensure that the request payload containing the message is valid XML. This encoding adds overhead that reduces the actual maximum size of a message. The Windows Azure SDK v1.3 added an EncodeMessage property to CloudQueue allowing a message, the content of which is already valid XML, to be sent without being Base64 encoded.

Each message added to a queue has a time-to-live property after which it is deleted automatically. The maximum, and default, time-to-live ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required