What should you recommend?

You are designing an Azure application. The application includes two web roles and three instances of a worker role. The web roles send requests to the worker role by using one or more Azure Queues.You need to recommend a queue design for sending requests to the worker role.What should you recommend?To communicate with the worker role, a web role instance places messages on to a queue. A worker role instance polls the queue for new messages, retrieves them, and processes them. There are a couple of important things to know about the way the queue service works in Azure. First, you reference a queue by name, and multiple role instances can share a single queue. Second, there is no concept of a typed message; you construct a message from either a string or a byte array. An individual message can be no more than 64 kilobytes (KB) in size.Reference: https://msdn.microsoft.com/en-gb/library/ff803365.aspxReference: http://azure.microsoft.com/en-gb/documentation/articles/cloud-services-dotnet-multi-tier-app-using-service-bus-queues/

Question:

What should you recommend?

Options:

Create a queue for each combination of web roles and worker role instances. Send requests to all worker role instances based on the sending web role.

Create a single queue. Send all requests on the single queue.

Create a queue for each worker role instance. Send requests on each worker queue by using a round robin rotation.

Create a queue for each web role. Send requests on all queues at the same time.

Correct Answer

The Correct Answer for this Question is

Create a single queue. Send all requests on the single queue.

Leave a Comment