Spawning and workflow in Lazur

Google really hit me on this one. I am new to Azure and only deal with the .NET intermediate.

I have an Azure solution, and I wrote code in the role of Web, which works fine. Now I would like to move part of this code to Azure Worker, which will be initialized by the controller function in the web role

What do I need to do to make this happen locally? I created a Worker project in SLN. I just need to know how to start it and run it.

I think part of my problem is that I believe that these workers behave like workers to Heroku ... is that so? Because what I need is something like a queue system (a bunch of "work tasks" in one large queue).

Many of the links I found for tutorials seem to use a dance around how to actually initialize a process from a web role.

+3
source share
3 answers

Workers in Windows Azure are not tasks; these are entire virtual machines. To make your life easier, keep this small detail in mind: Web role instances are Windows Server 2008 with IIS, and working roles are the same, but with IIS disabled.

When you added this worker role to your project, you actually got a new set of virtual machines (at least one, depending on the number of instances installed). These virtual machines have their own OnStart () and Run () methods, in which you can embed code, for bootstrapping.

Windows Azure, , , (a - Windows Azure). Guestbook ( ).

+4

, .

Heroku, Azure Worker - Rails, . Heroku, Azure Worker ... , templated sleep (10000) Run().

, Web Worker, - Azure ServiceBus, , , Azure , . .

ServiceBus ( ), .

+1

I think you are having trouble launching the azure emulator along with your work / web roles? Just run the azure tree configuration project as a startup project and run it. It will load the emulator along with all your roles.

-1
source

All Articles