Question on Azure function app hosting multiple Azure functions

anil kumar 1,646 Reputation points
2022-07-06T04:21:19.18+00:00

Hello,

We have a function app with three Azure functions and same is associated with a PROD app service plan. Could you please shed light on following questions?

  1. Can all the functions in a function app execute simultaneously?
  2. If yes, how the computed and other resources are distributed among those functions?
  3. Is there a way to restrict the amount of resources that can be requested by one of the Azure functions in a function app?

Appreciate your insightful response. Thank you.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,394 questions
0 comments No comments
{count} votes

Accepted answer
  1. Bruno Lucas 4,431 Reputation points MVP
    2022-07-06T05:30:15.903+00:00

    Hi @anil kumar

    They can. Azure functions can run in parallel

    217920-image.png
    https://learn.microsoft.com/en-us/azure/azure-functions/functions-how-to-use-azure-function-app-settings?tabs=portal

    If it run out of resources it will scale (depending on the plan) but they scale together. Same with parallelism because one web app has only 1 host file:https://learn.microsoft.com/en-us/azure/azure-functions/functions-host-json

    if you have 1 web app with different trigger types, like 1 http trigger and 1 event hub trigger, you can control some aspects of it, like the batch size for the event hub. but if they are all http triggers you can only set in 1 way


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.