Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Whether to use a worker role or a web role : Windows Azure

Tags:

c#

windows

azure

I am writing a small computation program with lot of read operations on blob files... Should I have to go for worker role or a web role....

like image 735
veda Avatar asked Apr 09 '10 18:04

veda


2 Answers

The only difference between a web role and a worker role is that in the web role, IIS (actually Hosted Web Core) gets started and pointed at your app data directory. You can still put code in WebRole.cs that does exactly the same thing as you would do in your worker role, so the decision should really be "Do you want IIS?" If so, use a web role. If not, use a worker role.

like image 161
user94559 Avatar answered Sep 23 '22 06:09

user94559


Definitively a worker role, web role is, as the name suggest, designed to answer web requests, and depending on IIS settings, web requests are likely to timeout after 1min or so.

like image 29
Joannes Vermorel Avatar answered Sep 23 '22 06:09

Joannes Vermorel