- Print
- DarkLight
- PDF
Multiple Function App with Fewer Azure Functions
- Print
- DarkLight
- PDF
Azure Function App is a container for one or more functions – each interacting with other Azure Services, APIs or applications.
You do not have to worry about any infrastructure, Microsoft does that for you. However, you still need to take failure into account.
Your Function App can either run in a Consumption Plan or App Service Plan, and the issue can occur either way. Your App Service might recycle by accident – if someone decided too, or suboptimal code could be introduced through a CI/CD pipeline. Or the workload increases and the function cannot scale enough.
Consumption Plan or App Service Plan – choose the right plan
There is no exact rule of thumb how to split up your functions into several Function Apps – it depends on your solution architecture and requirements.
In case your functions need to communicate then you can use queues (storage or service bus queues). Furthermore, if any state is required, you can look into Durable Functions.