azurecommunicationworkerroleazure-role-environment

Communication with worker roles in windows azure


I present my problem if anyone can help will be appreciated:

I have a web site (implemented in WebForms in Azure) where the user can make configurations that will result into a XML with all the data of the configuration. In the other hand, I have a Worker Role which is working and need this XML configuration.

The question is: how can I send this XML file generated by the user to the Worker Role?

I have looked for something similar to a REST API as interol communication seems not to be the correct path to follow.


Solution

    1. Save the XML to the blob storage
    2. Use Azure Queue - web app will add the "job" message pointing to XML (XML url + maybe some other data) and worker roles periodically check for "jobs" in this queue and processing them

    It is recommended practice in Azure, and it works very well (I am using it on some projects with very high load - hundreds of thousands "jobs" per day. Azure queues are very reliable and fast, those performance issues you have read about were certainly in some "user code".