I'm planning to do some light background processing in Azure. I already have a webrole running and would like to use the same role in order I don't have to use (and pay!) a dedicated worker role for that.
I have read I can simply override Run()
in the WebRole class, which derives from RoleEntryPoint
, and implement my 'poor man's scheduling' there. It should periodically get messages from the queue and process them.
Now my question is: Does the WebRole
run in its own process or thread, or more important, what happens with WebRole
when the app pool/app domain gets recycled?