user1561202
user1561202

Reputation: 145

What is Worker role translate to on the machine

I am having difficulty finding info about what Worker role actually is. For example Web role is an asp.net web application that is automatically deployed and configured in IIS. You can see the application files in IIS. Where can I see the Worker role file? Is it a windows service? Also who is running the Worker role process?

Upvotes: 0

Views: 93

Answers (1)

user94559
user94559

Reputation: 60153

The code for a worker role is usually a .NET assembly with a Run method. A process on the VM calls your Run method and expects it to run forever (never return). You can see the binaries on the VM in the \approot folder, usually on the e: drive.

By the way, web roles have the same thing. If you create a web role in Visual Studio, you'll see WebRole.cs, which implements the same interface as a worker role. The difference is that in a web role, you'll also have one or more web sites configured that are, as you mentioned, configured and run under IIS.

Upvotes: 2

Related Questions