Results 1 to 5 of 5

Thread: Webjobs vs Azure Functions

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2021
    Posts
    2

    Webjobs vs Azure Functions

    Hi there,

    At the moment we use Azure Webjobs on our new Azure Devops Backups offering (there is a job going by the way - feel free to check the job boards!)

    However I feel there is a shift by Microsoft to push Azure Functions instead. However in my research I cannot find anything that says that Azure functions are a really good fit for long-running jobs. Apparently if you use the premium version, it works but only for 30 minutes.

    Some of our backups take longer than that.

    What would you recommend?
    Last edited by si_the_geek; Jul 30th, 2021 at 05:45 PM. Reason: removed unnecessary links

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: Webjobs vs Azure Functions

    I'm no expert in this area and I may not actually be able to help, but I thought I'd add my two cents.

    My company deployed an app a year or two ago and we were looking at these two options and we ended up going with Azure Functions because there was something specific that Webjobs couldn't do, although I can't recall what it was right now. It's my understanding that Webjobs actually uses Azure Functions technology under the hood but exposes a subset of the functionality available.

    One thing that sticks in my mind is that a Webjob could have lived in the same App Service as our web app while the Azure Function lives in its own App Service. We use the consumption plan and our functions are quick, so that's no big deal but, for longer-running functions, there may be additional expense involved. Your situation may well be different to ours but we almost certainly would have gone with a Webjob if we could have. As long as Webjobs are supported and satisfy your needs, I'd probably suggest sticking with them.

  3. #3
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,458

    Re: Webjobs vs Azure Functions

    Quote Originally Posted by courtz View Post
    Hi there,

    At the moment we use Azure Webjobs on our new Azure Devops Backups offering (there is a job going by the way - feel free to check the job boards!)

    However I feel there is a shift by Microsoft to push Azure Functions instead. However in my research I cannot find anything that says that Azure functions are a really good fit for long-running jobs. Apparently if you use the premium version, it works but only for 30 minutes.

    Some of our backups take longer than that.

    What would you recommend?
    Functions are an evolution of WebJobs and can provide some nice features for developers, however they do have limits.

    When running as a consumption plan they are restricted to 10 minutes (5 by default) and aren't suited to long running jobs (especially as they are charged based on memory and time once you exceed the free limits).

    If you want a long running function app you could deploy it to either a premium plan or on a normal App Service Plan - these have more of a fixed cost compared to consumption but don't have a maximum runtime and aren't charged based on duration either.

  4. #4

    Thread Starter
    New Member
    Join Date
    Jul 2021
    Posts
    2

    Re: Webjobs vs Azure Functions

    Thanks for the detailed answer

    Quote Originally Posted by PlausiblyDamp View Post
    If you want a long running function app you could deploy it to either a premium plan or on a normal App Service Plan - these have more of a fixed cost compared to consumption but don't have a maximum runtime and aren't charged based on duration either.
    It seems like though they cannot guarantee it to run for longer than 60 minutes:

    https://docs.microsoft.com/en-us/azu...r-run-duration

    Perhaps we need to take the approach of dividing each individual repository backups into a separate functions runs

  5. #5
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,458

    Re: Webjobs vs Azure Functions

    Quote Originally Posted by courtz View Post
    Thanks for the detailed answer



    It seems like though they cannot guarantee it to run for longer than 60 minutes:

    https://docs.microsoft.com/en-us/azu...r-run-duration

    Perhaps we need to take the approach of dividing each individual repository backups into a separate functions runs
    Running them on a normal service plan should give you effectively unlimited time as long as you set it to "always on". Out of interest what are you doing as part of the backups? Are you using the cloud hosted Azure Devops?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width