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 development 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.
Processing the large queue messages
The size of a message in a queue is fixed, and for storing more data and information, one has to use table storage or BLOB. The size of the message in a queue is 8KB. Therefore, it is not possible to store a video or an audio content in a message queue. The advanced scenario of using Windows Azure development Queues is that one can extend the storage capacity of the queues according to the need. With this approach, the scalability and reliability of the queue are maintained while the storage capacity is increased.
Administrate your Queues
Windows Azure Queues are helpful in creating as well as deleting the queues. With the likes of many language specific APIs in the market, the developer can develop applications with their favorite language such as Node.Js, .NET, PHP, JAVA, Python and Ruby. It is a storage service under cloud computing which unites Queues, Blobs, and tables in a single storage.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.