Azure Web Jobs
  • Updated on 25 Feb 2019
  • 1 minute to read
  • Contributors
  • Print
  • Comments
  • Share
  • Dark
    Light

Azure Web Jobs

  • Print
  • Comments
  • Share
  • Dark
    Light

In this section we will take a look at Azure Web Job.

What is it?

A Web Job is a component that can run a piece of code as a background task. It is part of a Web App and runs a bit like a Windows Scheduled task or Windows Service.

Target Use Cases

The main places you may use a Web Job is for any background services to support your Web App. Maybe you have a Web App which writes a message to a Queue. The Web Job can process that queue in the background.

Features

The main features of a web job are:

  • Lots of language support such as .net, batch files, powershell, java
  • Can run as a single instance or scale out to many instances
  • Can be continuously running or scheduled

Strengths

The main strength of the Azure Web Job is in its simplicity. It very easy to get up and running with a web job to solve those out of process requirements you may have.

Weaknesses

The biggest weakness of the Azure Web Job is that it is hidden away underneath a Web App. This means that sometimes they get forgotten about.

Dependancies

The Web Job depends on an Azure Web App/App Service Plan and often needs the Web App to be turned to always on.

Hosting

The Web Job is hosted on the same App Service Plan as the Web App. Although at this time Web Jobs are not supported on Linux Web Apps.

Costs

The cost for a Web Job is soaked up in the cost for the App Service Plan which the Web Job belongs to.

Related Technologies

The related technologies for Web Jobs are@

Functions

Functions use the Web Job SDK. This means that they are very similar t

Product Recommendation

Recommendation
Azure Web Jobs are a green light product and good to use for a number of use cases. For the time being be mindful of Azure Functions as an alternative option because they are so similar it may be that you can use the two interchangably but I would expect their roadmaps will clarify best choices longer ter

Learn More

  • https://azure.microsoft.com/en-gb/resources/videos/azure-webjobs-advanced-programming/
Was this article helpful?