Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in Azure by (20.3k points)

From what I understand both run small repeatable tasks in the cloud.

What reasons and in what situations might I want to choose one over the other?

1 Answer

0 votes
by (47.2k points)

WebJobs

  • They are good for lightweight work items that do not need any customization of the environment they run in and do not consume many resources. 

  • They are really good for tasks that only need to be run periodically, scheduled, or triggered. They are cheap and easy to setup/run. They usually run in the context of our Website which means we get the same environment that our website runs in, and any resources they use are resources that our website can't use.

 

Worker Roles

  • They are good for more resources with intensive workloads 

  • If we want to modify the environment where they are running (i.e. something which is installed into the OS). Worker Roles are more expensive and slightly more difficult to set up and run, but they offer significantly more power.

Browse Categories

...