Skip to content
Related Articles

Related Articles

Improve Article

Difference between Web Role and Worker Role in Node.js

  • Last Updated : 17 Jun, 2021
Geek Week

Web Role: Web Role is a Cloud Service role in Azure that is customized to run web-based applications developed by programming languages supported by IIIS (Internet Information Services) like we have Node JS.

Worker Role: A worker role is any role in Azure that is customized to run applications in the background service processes along with Web Roles to complete service level tasks frequently. 

Both Web role and Worker role are the roles that are concerned with running applications on Azure cloud service on port 80. Both the services can be managed and deployed in the same way on the same Azure instance.

Difference between Web Role vs Worker Role: The main difference between the two roles is the way the role is hosted on the virtual machines(VMs) like the webserver hosts the app through IIS while the worker role runs the app standalone.

Web role

Worker Role

Web Role is a Cloud Service role in Azure.Any role in Azure that runs applications and performs certain tasks can be a worker role.
It is suited to run web applications that are developed on programming languages supported by IIIS.It is suited to run applications and services level tasks.
Web Role automatically deploys and hosts the app through IIS.It does not use IIS, and it runs your app standalone.
This primary role is to create web-based applications easily.It is used to perform supporting background processes along with Web Roles.
IIS is installed by default.IIS is not installed by default.
For some complex applications, incoming requests from the user can be handled by web role. For some complex applications, incoming requests are passed to the worker role for processing.
My Personal Notes arrow_drop_up
Recommended Articles
Page :