Running multiple functions under a single function app

Abhishek Godhani 0 Reputation points
2024-07-25T01:46:34.5133333+00:00

Hi, if I deploy multiple queue triggered functions under one azure function app resource then could there be any threading issues?

As in, if multiple functions are being triggered then could the threads/memory be shared or is there a risk of threads/memory leaking data to one another?

Each time when either of the function is triggered it will be processing a data file that will be stored in a time stamped folder, so at a given time though only one function would be accessing files from a particular time stamped folder.

  • Azure Function App
  • queue_triggered_function_one
  • queue_triggered_function_two
  • queue_triggered_function_three
  • queue_triggered_function_four

-Storage

  • folder_one
  • folder_two
  • folder_three
  • folder_four

At a given point in time any of the data in a given folder will only be accessed by a single queue triggered function.

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

1 answer

Sort by: Most helpful
  1. Luis Arias 6,061 Reputation points
    2024-07-25T20:43:24.7566667+00:00

    Hi Abhishek Godhani,

    About your first question on threads/memory, please follow this thread:

    https://learn.microsoft.com/en-us/answers/questions/1093463/need-deeper-understanding-of-azure-functions

    Regarding the file organization and best practice please follow this docs:

    https://learn.microsoft.com/en-us/azure/azure-functions/functions-best-practices?tabs=csharp#function-organization-best-practices

    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    Regards,

    Luis

    0 comments No comments