16.6. Worker Roles
A worker role is Azure's version of a Windows service. Worker roles are used for continual or long-running tasks, such as processing data held in an Azure queue (we will look at Azure queues shortly). Worker roles cannot be accessed directly like a web role or ASP.NET page, but they do allow the creation of HTTP-based endpoints for inter-role communication. Please see the Azure samples' November training kit (www.microsoft.com/downloads/details.aspx?FamilyID=413e88f8-5966-4a83-b309-53b7b77edf78&displaylang=en), which contains a thumbnail image generator example.
In many Azure projects, you will want to use both web and worker roles. To add a worker role to an existing project, just right-click the ~/Roles/ directory, and then ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access