When we should create Functions under same Function App and when should not

Ahsan Habib 126 Reputation points
2020-12-09T18:57:47.1+00:00

Hello !!! I have a question regarding Azure Function !!!

So I have 3 Azure Functions. They are doing the following:

  1. Event Hub trigger
  2. Time trigger syncing some cache data of the MongoDB database and Redis
  3. Another Time trigger doing some schedule checking.

Should I create them under a Single Function App or create 3 different Function App? If I create them under one function app, then are they going to have any scalability issue?

When we should create Functions under same Function App and when should not?

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

1 answer

Sort by: Most helpful
  1. Jaliya Udagedara 2,821 Reputation points MVP
    2020-12-10T08:50:20.88+00:00

    The functions you mentioned can be placed inside the same function app and I don't see any scalability issues.

    Regarding your question: multiple Function Apps or one Function App with multiple functions, I don't think there is an exact guideline on how to design your functions. Saying that Function Apps uses a storage account to maintain its operations such as managing triggers and logging function executions etc. All the functions inside the Function App share that storage account. Say, you have a Durable Function, it's heavily using the storage account, so it's best to isolate that with a different Function App.

    These might help,
    Optimize the performance and reliability of Azure Functions
    Azure Functions scale and hosting

    1 person found this answer helpful.
    0 comments No comments