Hi @Gordon Long
Load Balancing (Horizontal Scaling) on Azure
- Azure App Service:
- Scale horizontally by adding more app instances.
- Azure automatically handles load balancing between instances. You can configure auto-scaling based on metrics like CPU usage.
For more information about horizontal scaling:
Autoscaling guidance - Best practices for cloud applications | Microsoft Learn - Azure Front Door / Application Gateway: Azure Front Door: Global load balancer with SSL termination, URL-based routing, and WAF.
https://learn.microsoft.com/en-us/azure/frontdoor/front-door-overview
Azure Application Gateway: Layer 7 load balancing, SSL offloading, and traffic routing for web apps. What is Azure Application Gateway | Microsoft Learn
Standalone Database Server for Multiple Django Servers
- Centralized Database:
- Use a separate, standalone database server accessible by all app instances.
- Ensure the database can handle connections from multiple servers (use connection pooling). Set up replication (read replicas) to distribute read queries and reduce load on the primary database. Implement caching (e.g., Redis) to offload frequent queries and reduce database load. Azure Database for PostgreSQL/MySQL: Provides automatic backups, scaling, and high availability. Azure Redis Cache: Integrate Redis for caching queries and storing sessions.
If the answer is helpful, please click "Accept Answer" and kindly upvote it.