Search code examples
azureazure-functionsload-balancingserverlessazure-traffic-manager

Azure Functions: How to load balance between multiple Function apps in the same region


Is it possible to load balance between multiple Function apps (say 10 of them) on consumption plan in the same region? Each app would have the same source code and can individually be upgraded to prevent downtime. Unfortunately, sometimes I get 503 errors when I deploy changes to a Function app, in which case I have to manually restart the app in the portal. Auto-swap has the same issues. This is not acceptable in a production environment, so I'm thinking of using multiple apps. I looked into using Traffic Manager, but that seems to be suited for a multi-region deployment.


Solution

  • You can use Traffic Manager also for backends that are all in the same region. However, I would rather recommend to use Azure Front Door as it provides more capabilities and faster failover times.