Search code examples
c#azure-worker-rolesazureservicebusazure-queuesazure-servicebus-queues

Subscribing to an Azure Queue


I have an Azure web site that generates reports. The reports take ~45 seconds to generate and I'd like to migrate that a worker role to lessen the load on the web site.

I've been researching which tool to use to enable the web site to pass a "report generation request" to the worker role. Azure Queues look like the way to go, but from what I've seen in the Channel 9 Azure Friday series, blog posts and Stackoverflow (Azure Service bus queues topics vs queues for web/worker roles, Writing a listner to Azure Queue), Azure Queue only supports polling.

However, Azure is changing rapidly and this information is a bit old. Is it still the case that Queue's only support polling?

If that's the case would I be better off using Azure Service Bus to pass messages as it supports a Publish/Subscribe model? I'm a little hesitant to use the Service Bus as I don't seam to need any of the features specific to the Service Bus descibed on MSDN.


Solution

  • if you're looking for a publish/subscribe messaging pattern, check out Service Bus topics and subscriptions (http://msdn.microsoft.com/en-us/library/hh367516.aspx and http://msdn.microsoft.com/en-us/library/hh699844.aspx). Topics and subscriptions are basically Service Bus queues with pub/sub capabilities.

    For more background information, you might want to check out this comparison of Azure Queues and Service Bus queues: http://msdn.microsoft.com/en-us/library/hh767287.aspx.

    Hope that information helps, Seth Manheim Azure Doc Team