Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>AS stated above, a little bit more context is needed. You basically have two main options, Windows Azure Queues and Windows Azure Service Bus Queues/Topics. My personal advice would be to use Azure Queues if the Web and Worker Roles are colocated in the same region and Service Bus Queues if they are not. I would have to ask why are you not colocating your Web and Worker Roles together, if you have a geographic deployment of you app then look at deploying all your Web Roles and Work Roles in each Region e.g. US, Europe &amp; Asia and then use Traffic Manager to route user to the optimal region. </p> <p>There is a good blog post on when to use which queue 'Windows Azure Queues and Windows Azure Service Bus Queues - Compared and Contrasted': <a href="http://msdn.microsoft.com/en-us/library/windowsazure/hh767287.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/windowsazure/hh767287.aspx</a></p> <p>HTH</p> <p><strong>EDIT</strong></p> <p>A good approach for Web and Worker Role communication is below (I stole this from a recent thread which @smarx answered) </p> <p>1 Web role writes a message to the queue that includes a job ID.</p> <p>2 Worker role does the work and writes the result to a table with partition key .</p> <p>3 Web role is polling that row of the table. Once it exists, the answer comes back.</p> <p>In your case you could have the Worker Role update the Table Storage with the status updates and then have your Web Role pick them up and display them to the user. e.g. 20%, 50%, Complete etc...</p> <p>I don't really see delays in this type of communication, as long as you are polling sufficiently from the Web Role (*note transactions costs) </p> <p>I presume some sort of Inter Role communication could be done here for status updates but it might be overkill IMO:</p> <p><a href="http://msdn.microsoft.com/en-us/library/windowsazure/hh180158.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/windowsazure/hh180158.aspx</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload