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
17 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
+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 10, 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 to automatically install Application Initialization in Azure Web Role (SDK v1.8) ?

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

answered Apr 11 in Azure by Prerna
• 1,940 points
38 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
16 views
0 votes
1 answer

What is the best "Web API Authentication" practice?

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

answered Aug 6, 2018 in Azure by null_void
• 3,220 points
38 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 8, 2018 in Azure by club_seesharp
• 3,450 points
73 views
0 votes
1 answer

How can I use “Azure File Storage” with Web App Service?

If you're looking for mapping a drive ...READ MORE

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

Azure has 3 different types of storage accounts. Is there any major difference between them?

Azure Storage provides three types of storage ...READ MORE

answered Mar 4 in Azure by Prerna
• 1,940 points
57 views
0 votes
1 answer

How to download a file from Blob Storage to the browser?

If you use ASP.NET (core), you can ...READ MORE

answered Mar 25 in Azure by Prerna
• 1,940 points
133 views
0 votes
1 answer

How to set default Web page for a website on Microsoft Windows Azure?

This blog post should resolve your issue: http://blogs.msdn.com/b/cesardelatorre/archive/2010/07/22/how-to-set-a-default-page-to-a-windows-azure-web-role-app-silverlight-asp-net-etc.aspx Look ...READ MORE

answered Mar 27 in Azure by Prerna
• 1,940 points
20 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
• 56,140 points
776 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
131 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.