Default Container Apps Balancer algorithm

Shea Lavington 0 Reputation points
2023-02-21T08:55:17.17+00:00

The Container Apps default setup without selecting VNet comes with a default load balancer.

What's the container apps default balancing behavior?

Does it use a round-robin algorithm to evenly balance every browser request across all replicas (expecting the container to be stateless), or does it route all requests from an IP source to a single app replica (expecting the container to be stateful)?

The documentation has left me and a colleague in disagreement.

This article and others including asking ChatGPT leads me to believe that HTTP requests default to a round-robin algorithm and that ALL requests even when from the same IP are balanced evenly across all replicas (stateless containers).
https://video2.skills-academy.com/en-us/azure/container-apps/networking#http-edge-proxy-behavior

My colleague followed the below article and believes that the default container apps balancing mode uses IP based balancing to a single stateful replica per session. (Session persistence: Client IP).

https://video2.skills-academy.com/en-us/azure/load-balancer/distribution-mode-concepts

We've struggled to get an actual answer from Azure.

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
325 questions
{count} votes