Is there a way to host Azure Worker code within an Azure Web role?

311 Views Asked by At

I have a relatively low bandwidth Azure Web Role application and also several processes that run under a Worker Role. My worker role also spends most of its time idle as well.

Is there a way to do a Poll of something like my Worker Role loop within my Web Role?

The closest request I can find is: http://www.mygreatwindowsazureidea.com/forums/34192-windows-azure-feature-voting/suggestions/397209-provide-multiple-roles-per-instance?ref=title

1

There are 1 best solutions below

1
On BEST ANSWER

Yes - simply add a Run() method to your Web role. Also, with Azure v1.3, you can now have more than just an http and https endpoint in your Web role, allowing you to host processes that require a tcp port, for instance.

I just blogged about overloading a Web role.