Best Load Balancer Option for Container Apps with Autoscaling

Antonio Meireles 35 Reputation points
2025-03-26T11:34:35.26+00:00

We have three Azure Container Apps, each hosting an API, and we need a load balancing and autoscaling solution to efficiently distribute traffic across them.

We would like guidance on the best Azure service for our scenario. Specifically:

  1. Which Azure load balancing solution (e.g., Application Gateway, Front Door, API Management, Load Balancer) is best suited for balancing traffic between multiple Container Apps?
  2. What is the recommended approach for autoscaling these Container Apps based on traffic and resource usage?
  3. Are there any best practices or limitations we should be aware of when implementing this solution?
Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
497 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ganesh Patapati 5,520 Reputation points Microsoft External Staff
    2025-03-27T13:34:37.7466667+00:00

    @Antonio Meireles

    Thanks for the reply!

    I agree that Azure Front Door is an excellent choice for your scenario. It is designed specifically for globally distributed, HTTP(S)-based workloads, making it a cost-effective and high-performance alternative to Azure Application Gateway.

    Here are some recommendations and best practices for making the migration smooth:

    • While Front Door is feature-rich, ensure all your requirements are fully supported. For example, Application Gateway may offer deeper integration for certain regional scenarios, so evaluate what your workloads specifically need.
    • Replicate your Application Gateway routing rules in Front Door. You can use the Azure Portal to define and test new configurations.
    • Start by adding Front Door alongside Application Gateway and route a small percentage of traffic to Front Door for testing. Once satisfied with performance, gradually increase traffic and cut over DNS completely.
    • Set up health probes for your Container Apps behind Front Door to ensure only healthy instances receive traffic.
    • Add your Container Apps to the Front Door back-end pool and configure session affinity, caching, and priority-based routing if required.
    • You can leverage Azure Container Apps autoscaling to dynamically scale based on traffic handled by Front Door. Utilize the scaling triggers provided natively (HTTP requests, CPU/memory utilization, or custom KEDA triggers).
    • Ensure that the minimum and maximum replica settings align with expected traffic patterns.
    • You can enable Web Application Firewall (WAF) with Azure Front Door for enhanced security. Fine-tune WAF rules to align with your APIs and web applications to prevent false positives.
    • Implement SSL termination at Front Door and enforce HTTPS for all traffic. Use Azure Key Vault to manage SSL certificates securely.
    • Leverage Azure Monitor and Log Analytics for traffic metrics, latency insights, and troubleshooting.
    • Compare billing patterns post-migration to ensure that the switch to Front Door reduces costs as expected.

    With these steps, you should be able to transition smoothly while achieving cost savings and optimizing performance.

    If you wish you may upvote the feedback in the below forum requesting this feature. All the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.

    Feedback link: https://feedback.azure.com/d365community


    If above is unclear and/or you are unsure about something add a comment below.

    Kindly let us know if the above helps or you need further assistance on this issue.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    Accepted answer


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.