fbpx
Netreo is now BMC. Read theBlog

Azure Cloud Services: What are Web and Worker Roles in Microsoft Azure?

By: Netreo
July 14, 2018

Before delving into the difference between a Web Role and a Worker Role in Azure Cloud Services, let’s first review what are Azure Services and Cloud Service Roles.

Table of Contents

What are Azure Cloud Services?

Azure Cloud Services is a classic Azure resource, originally introduced by Azure back in 2008.  This technology was designed to support scalable web and worker role applications running on Windows. While Azure has been taking steps to move forward with its newer Azure VM Scale Sets, Classic Cloud Services still remains a popular deployment choice for many legacy environments in Azure.

Suggested Reading: 5 Azure performance metrics every administrator should keep in mind.

What is an Azure Cloud Service Role?

In Azure, a Cloud Service Role is a collection of managed, load-balanced, Platform-as-a-Service virtual machines that work together to perform common tasks. Cloud Service Roles are managed by Azure fabric controller and provide the ultimate combination of scalability, control, and customization

What is a Web Role in Azure Cloud Services?

Web Role is a Cloud Service role in Azure that is configured and customized to run web applications developed on programming languages/technologies that are supported by Internet Information Services (IIS), such as ASP.NET, PHP, Windows Communication Foundation and Fast CGI.

What is a Worker Role?

Worker Role is any role in Azure that runs applications and services level tasks, which generally do not require IIS. In Worker Roles, IIS is not installed by default. They are mainly used to perform supporting background processes along with Web Roles and do tasks such as automatically compressing uploaded images, run scripts when something changes in the database, get new messages from queue and process and more.

Differences between the Web and Worker Roles in Azure Cloud Services

The main difference between the two is that:

  • a Web Role automatically deploys and hosts your app through IIS
  • a Worker Role does not use IIS and runs your app standalone

Being deployed and delivered through the Azure Service Platform, both can be managed in the same way and can be deployed on a same Azure Instance.

In most scenarios, Web Role and Worker Role instances work together and are often used by an application simultaneously. For example, a web role instance might accept requests from users, then pass them to a worker role instance for processing.

Monitoring performance of Web and Worker Roles

Azure Portal provides basic monitoring for Azure Web and Worker Roles. Users that require advanced monitoring, auto-scaling or self-healing features for their cloud role instances, should learn more about Netreo. Along with advanced features designed to keep Cloud Services stable, Netreo also provides powerful dashboards, historical reporting, various integrations to popular ITSM and other IT tools and much more. 

Suggested reading

Ready to get started?

Get in touch or schedule a demo

Get Started Learn More