Advanced scenarios with Windows Azure Queues

Rits Daas
2 min readDec 14, 2017

--

Windows Azure Queues can be used for exchanging messages between the application components both on premise and in the cloud. Here the concept of messaging is that a message in Windows Azure Queue is the task created by the application developer which needs to be processed by the client or the consumer. Each message consists of a small body with a general attribute. Windows Azure Queues are the part of cloud storage services which includes Queues, Tables, and BLOBs. These attributes of a message can be used to configure the services. The Azure Queue delivers asynchronous messaging of application components for communication purpose. It doesn’t matter on which platform it is running, be it cloud, or on premise, desktop or any mobile device. It helps the developer to process and build work flows. Moreover, Windows Azure Queues in terms of commercial point of view is a charged service which works on the principle of pay-per-use. Here are some advanced scenarios with Windows Azure Queues.

Using Windows Azure Queues to develop a State Machine

Windows Workflow foundation is used to develop a state machine pattern in .NET. On the other hand, Windows Azure Queues can also be used to accomplish this task. The simplest and the easiest way to use Windows Azure Queues to develop the state machine is to create one queue per state. The techniques in this scenario can be used and re-used again making it reliable and scalable for the application.

Back off Polling Queues

Back off Polling Queues in the Windows Azure Queues is one of the finest methods to lower the number of transactions in a queue by reducing the bandwidth used. Infinite loops are written in the source code to check and process the messages. An algorithm is used for Back off Polling Queues which on arrival sleeps for a second and then rechecks the queue again. The algorithm uses a simple approach for processing the queue messages fairly and easily.

View More at : Azure Application Development

--

--