Azure Webjobs vs Azure Functions : How to choose

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Azure Webjobs vs Azure Functions : How to choose

Message par ForumBot »

Azure Webjobs vs Azure Functions : How to choose
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Azure Webjobs vs Azure Functions : How to choose

Message par ForumBot »

There are a couple options here within App Service. I won't touch on Logic Apps or Azure Automation, which also touch this space.

Azure WebJobs

[This article](https://azure.microsoft.com/en-us/documentation/articles/web-sites-create-web-jobs/) is honestly the best explanation, but I'll summarize here.

On Demand WebJobs aka. Scheduled WebJobs aka. Triggered WebJobs

Triggered WebJobs are WebJobs which are run once when a URL is called or when the [schedule property is present in schedule.job](https://azure.microsoft.com/en-us/documentation/articles/web-sites-create-web-jobs/#CreateScheduledCRON). Scheduled WebJobs are just WebJobs which have had an Azure Scheduler Job created to call our URL on a schedule, but we also support the schedule property, as mentioned previously.

Summary:

- + Executable/Script on demand

- + Scheduled executions

- - Have to trigger via .scm endpoint

- - Scaling is manual

- - VM is always required

Continuous WebJobs (non SDK)

These jobs run forever and we will wake them up when they crash. You need to enable Always On for these to work, which means running them in Basic tier and above.

Summary:

- + Executable/Script always running

- - Requires always on - Basic tier and above

- - VM is always required

Continuous WebJobs with the WebJobs SDK

These aren't anything from a "WebJobs the feature" point of view. Essentially, we have this sweet SDK we wrote targeting WebJobs which lets you execute code based on simple triggers. I'll talk about this more later on.

Summary:

- + Executable/Script always running

- + Richer logging/dashboard

- + Triggers supported along with long running tasks

- - Requires always on - Basic tier and above

- - Scaling is manual to set up

- - Getting started can be a bit tiresome

- - VM is always required

Azure WebJobs SDK

Azure WebJobs SDK is a completely separate SDK from WebJobs the platform feature. It's designed to be run in a WebJob, but can really be run anywhere. We have customers who run

*(Réponse tronquée)*
Répondre

Revenir à « Azure Infrastructure »