How different is Web job from Worker role

0 votes
As a layman, I understood that these are both small repeatable tasks on cloud. How can I choose between them?
May 10, 2018 in Azure by null_void
• 3,220 points
1,368 views

1 answer to this question.

+2 votes
Best answer

Some of the basic yet valid differences between them are:
WebJobs:

  • WebJobs are the best choice for handling lightweight work that do not require any sort of customization of the environment that they are running in
  • They don't consist/include relatively many resources behind their functionality
  • They are preferably a very good choice for tasks which only need to be run periodically, scheduled, or triggered
  • They are actually cheap and very easy to setup/run
  • By running in the context of your Website, i.e, you get to have the same environment in which your Website runs, and also all the resources that they use are resources which your Website can't use

Worker Roles:

  • Worker Roles are better choice for resource-intensive workloads and also, when you need preferences/options to modify the environment in which they are running (ie. a particular .NET framework version or something installed into the OS)
  • Worker Roles are more expensive than WebJobs
  • They are relatively more difficult to setup and run, but they do offer significantly more power than WebJobs

If I have to put it in general terms, suggest you to begin with WebJobs and then slowly shift to Worker Roles in case your workload requires more functionalities/advantages than WebJobs can offer.

answered May 11, 2018 by club_seesharp
• 3,450 points

selected Jun 14, 2018 by null_void
Neat and simple. Thanks @club_seesharp
Simple understandable.

Related Questions In Azure

0 votes
1 answer

How is Azure Cosmos db different from an Azure SQL db?

Azure Cosmos DB is Microsoft’s globally distributed database ...READ MORE

answered Jan 10, 2020 in Azure by Sirajul
• 59,230 points
2,037 views
0 votes
1 answer

How to automatically install Application Initialization in Azure Web Role (SDK v1.8) ?

Follow these steps - Install the feature using ...READ MORE

answered Apr 11, 2019 in Azure by Prerna
• 1,960 points
859 views
0 votes
1 answer

How to Schedule a task in Azure Worker role?

You can simply have a message on ...READ MORE

answered Jul 1, 2019 in Azure by Perry
• 17,100 points
1,327 views
0 votes
0 answers
0 votes
1 answer

What is azure web role?

Web role is basically an Azure Cloud ...READ MORE

answered Jan 21, 2020 in Azure by Sirajul
• 59,230 points

edited Oct 7, 2021 by Sarfaraz 1,276 views
0 votes
1 answer

Web Role always busy and not starting?

In most of the situation when a ...READ MORE

answered Jun 18, 2018 in Azure by null_void
• 3,220 points
806 views
0 votes
1 answer

What is the best "Web API Authentication" practice?

Talking about the best practice, consider the ...READ MORE

answered Aug 7, 2018 in Azure by null_void
• 3,220 points
769 views
0 votes
1 answer

How can we connect Azure Web App to an Azure SQL Database?

Its easy now! Go to your Azure SQL ...READ MORE

answered Aug 9, 2018 in Azure by club_seesharp
• 3,450 points
6,699 views
0 votes
2 answers

How can I download a .vhd image to my local machine from azure and upload the same to a different azure account?

From the Windows Azure Portal you can ...READ MORE

answered Aug 20, 2018 in Azure by Priyaj
• 58,100 points
13,928 views
0 votes
1 answer

How to add an App Settings to existing Azure Web Application using Azure Power Shell?

The example is for slot-specific settings, if ...READ MORE

answered Jun 13, 2018 in Azure by club_seesharp
• 3,450 points
1,385 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP