When working with queues, you should know about Lock timeout property of a message. This is the basis on which we can build highly scalable applications in windows azure. This ensures that sales orders can be accepted without any delay providing a smooth user experience for the end user. This is how the workload is divided between web role and worker role. When it finds a message, that is the sales order, it processes the order. A worker role continuously checks for messages in the queue. Web role is the front end and accepts order details and place them into the queue for further processing. Let us understand the usage of queue service with an Azure inventory application example.Ĭonsider Azure Inventory application which contains web role to accept sales orders and worker role to process the order and persist order details into the azure table storage. In a cloud service application, queues are used for communication between web roles and worker roles. We can use REST protocol or Storage client libraries to work with queue service. A queue can contain millions of messages, however for a particular storage account the messages are limited by the size of the storage account, that is 500TB. A queue data structure is such that data can be retrieved in a First in First out (FIFO) fashion. This service enables us to store and retrieve messages.Ī queue can store anything that can be serialized. Queue service is also a service like blob storage and Table storage service. As discussed in a previous question, Queues are an important part of an Azure cloud service application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |