Azure Front Door can help organisations build web applications that remain available, responsive, and resilient across regions. But how does it actually handle traffic, failover, performance, and application delivery? Explore the key concepts every Azure developer should understand. Read, learn, and share your approach.
Azure Front Door improves web application availability by placing a globally distributed Layer 7 entry point between users and application origins. Instead of clients depending directly on one application endpoint or region, Front Door can route requests across multiple healthy origins according to the configured routing strategy.
A typical highly available architecture could look like this:
```text
Users
|
v
Azure Front Door
|
+-------------------+
| |
v v
Region A Region B
Web App Web App
| |
v v
Application Application
Services Services
```
One of the most important availability mechanisms is **origin health probing**. Azure Front Door periodically checks configured origins and uses probe results when determining whether an origin should continue receiving traffic. This allows unhealthy origins to be removed from normal routing decisions until they recover.
But health probes alone do not make an application highly available. The application architecture behind Front Door must also support failure.
For example, imagine an e-commerce application deployed in two Azure regions. If Region A becomes unavailable, Front Door can route requests towards an available origin in Region B. However, if both application instances depend on a database available only in Region A, the application can still fail. High availability therefore has to be designed across the complete dependency chain.
Front Door can also use routing configuration such as **priority** to support active/passive designs and **latency-based routing** to help select responsive origins. Microsoft also positions Front Door as a global CDN and application-delivery service, so availability, performance and edge delivery can be addressed together.
For production architecture, consider:
* Multiple application origins or regions.
* Health-probe endpoints that represent meaningful application health.
* Origin priority and routing configuration.
* Session-state implications during failover.
* Database and storage resiliency.
* DNS and certificate management.
* Web Application Firewall requirements.
* Monitoring and alerting.
* Capacity of the secondary region during failover.
A subtle design issue is the **health endpoint itself**. A `/health` endpoint returning HTTP 200 simply because the web process is running may not represent true business availability. Depending on the architecture, the health strategy may also need to consider critical dependencies.
The important architectural principle is:
**Azure Front Door can route around an unhealthy web origin, but end-to-end availability still depends on the resilience of the application and its downstream dependencies.**
**Discussion:** If you were designing a business-critical application across two Azure regions, would you use active/active origins or active/passive? What requirement would drive your choice?