Active/active on Azure: Front Door, two regions, Cosmos DB multi-region writes
Run one web app in two Azure regions at once: Front Door routes to the nearest healthy region and Cosmos DB takes writes in both. What fails over by itself, what needs a person, and what it costs.
Opens a copy in the editor, in a new tab, ready to change. No account needed.
What’s in this diagram
services and parts
- Users
- Azure Front Door (latency routing)
- App Service or AKS (stateless)
- Azure Managed Redis
- Key Vault (stamp secrets)
- Cosmos DB write region (hub)
- Application Insights (regional)
- Cosmos DB write region (satellite)
- Log Analytics (global view)
- Azure Monitor alerts and Resource Health
- Cosmos DB continuous backup
groups
- Region A (active)
- Deployment stamp A (replaceable)
- Region B (active)
- Deployment stamp B (replaceable)
Key points
- Front Door health probes drop an unhealthy region from routing on their own. Nothing has to be promoted.
- Cosmos DB multi-region writes need no failover step, but rule out strong consistency; a policy you choose settles conflicts.
- Each region must carry the whole load: two full stacks and per-region database throughput.
- Replication is not backup. Keep continuous backup for deletions and bad writes.
The whole story, step by step: Active/active on Azure with Front Door and Cosmos DB.


