หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Azure Front Door is a global, nonregional layer 7 load balancer and content delivery network (CDN) for HTTP and HTTPS applications.
When you use Azure, reliability is a shared responsibility. Microsoft provides a range of capabilities to support resiliency and recovery. You're responsible for understanding how those capabilities work within all of the services you use, and selecting the capabilities you need to meet your business objectives and uptime goals.
This article describes Azure Front Door's resilience to transient faults, availability zone failures, edge location failures, region-wide failures, and service outages. It also covers security threats and misconfiguration, management tool outages, backup and restore, and service maintenance. The guidance applies to Azure Front Door Standard and Premium, not Front Door (classic).
Note
This article focuses on the resilience of the Front Door service itself and the configuration choices that affect its reliability. It isn't a complete architecture guide for designing resilient applications that use Front Door. For example architectures that use Front Door, see Create a highly available multi-region app in Azure App Service and AKS baseline for multiregion clusters.
Production deployment recommendations
The Azure Well-Architected Framework provides recommendations for reliability, performance, security, cost, and operations. To learn how these areas influence each other and contribute to a reliable Front Door solution, see Architecture best practices for Azure Front Door in the Well-Architected Framework.
Reliability architecture overview
This section describes how the service's architecture supports reliability. It introduces the logical architecture, including the resources and features that you deploy and use, and the physical architecture, including the underlying infrastructure that runs the service.
Logical architecture
Front Door is the public entry point for incoming requests to a web application. Front Door forwards requests to your application's back-end endpoints, called origins, or responds directly with a cached copy of the requested content.
Resource model
You deploy a profile, which contains your Front Door configuration and determines the tier that you use. The following list describes selected components and mechanisms relevant to reliability. For a broader introduction to the service and its capabilities, see Azure Front Door overview.
Endpoints: An endpoint provides a Front Door hostname that receives client requests.
Custom domains: A custom domain associates a domain that you own with an endpoint.
Routes: A route maps domains and URL patterns to an origin group.
Rule sets and rules: A rule set contains rules that conditionally modify request or response processing. You associate rule sets with routes. Rules can also invoke Edge Actions.
Edge Actions: An Edge Action is a separate resource that contains versioned JavaScript code. Rules associated with routes invoke the code to modify requests or responses at Front Door edge locations. Microsoft manages the execution environment, and you're responsible for the code and its effect on application behavior. For background and configuration details, see Edge Actions in Azure Front Door. For reliability considerations, see Protect global configuration.
Origin groups: An origin group contains one or more origins and defines health probe and load-balancing settings.
Origins: An origin is an application endpoint that serves content. Origins can run in Azure, on-premises, or with another cloud provider.
When a request arrives, Front Door identifies enabled and healthy origins, then selects an origin based on priority, latency, and weight. For more information, see Azure Front Door routing methods.
Important
Front Door's global infrastructure doesn't protect your origins from local outages. Front Door can stop routing new requests to an unhealthy origin, but it doesn't repair that origin or make it resilient to availability zone or region-wide failures. You're responsible for configuring and deploying your origins to meet your workload's reliability requirements.
Review the reliability guides for the Azure services that host your origins.
Health probes: Health probes determine whether an origin is healthy and measure its latency. For HTTP and HTTPS probes, Front Door considers an HTTP
200 OKprobe response successful. Front Door evaluates a rolling window of probe results to determine origin health. In the origin group, you configure the probe protocol, method, path, interval, sample size, and required number of successful samples. For more information, see Health probes in Azure Front Door.Front Door also supports native gRPC health probes for gRPC-enabled origins in public preview. For requirements and limitations, see gRPC probes in Azure Front Door.
If failed health probes cause Front Door to mark an origin unhealthy, Front Door stops selecting it for new requests while other origins in the group remain healthy. Front Door selects among those healthy origins by using your configured routing settings. When the origin meets the configured health probe requirements again, it becomes eligible to receive traffic.
If health probes fail for every origin in an origin group, Front Door distributes traffic across all origins in that group in a round-robin pattern. This behavior doesn't restore unhealthy origins or their network connectivity, so requests can still fail.
Features discussed in this guide
In addition to the components and mechanisms described above, this guide discusses reliability considerations for the following Front Door features:
Web Application Firewall (WAF): Azure Web Application Firewall on Azure Front Door inspects incoming HTTP and HTTPS requests and can block requests based on the rules in your WAF policy. For reliability considerations, see Resilience to security threats and misconfiguration.
WebSockets: Front Door supports WebSocket connections. WebSockets provide a persistent, bidirectional connection between a client and an origin, so the origin can send updates without the client repeatedly polling for them. For connection limits and reconnection considerations, see Client-to-Front Door faults.
Disable caching on routes that use WebSockets. Otherwise, Front Door doesn't forward the WebSocket Upgrade header to the origin, and the connection upgrade fails. For more information, see Use WebSocket on Azure Front Door.
Private Link origins: Front Door can connect to origins over public networking. For Azure-hosted origins that use supported services, you can optionally configure Front Door Premium to connect through Azure Private Link. In this configuration, Front Door connects to the origin through a private endpoint in a Front Door-managed regional network. Traffic between Front Door and the origin stays on the Microsoft network rather than the public internet. Private Link applies to the connection from Front Door to the origin, not to the connection from clients to Front Door. For supported origins and configuration details, see Secure your origin with Private Link in Azure Front Door Premium.
Physical architecture
Azure Front Door operates as a global, nonregional service. Its serving infrastructure consists of points of presence (PoPs), also called edge locations. PoPs are locations where Front Door has infrastructure around the world, in Azure and non-Microsoft datacenters, and they're an extension of Microsoft networks. Every PoP can serve requests for any Front Door customer's web service or application. For the current locations, see Azure Front Door PoP locations by metro.
Front Door's data plane is made up of components that handle application requests and responses, while its control plane is the management layer that handles profile management operations, such as creating or updating your profile configuration.
Edge locations and request routing
Request routing has two distinct stages: selecting a Front Door edge location and selecting an application origin when the request requires one.
Routing to an edge location begins with DNS resolution. When a client resolves the hostname of a web application or other service that uses Front Door, Front Door's DNS service uses an internal load management system to select the optimal PoP based on health and other factors. The DNS service returns a unicast IP address for the selected PoP. The client then connects directly to that PoP, where Front Door processes the request and either serves cached content or forwards the request to an eligible origin. For more information, see Unicast routing architecture in Azure Front Door.
Front Door monitors your origins, which are your web app or service's endpoints, by using health probes to inform its routing decisions. Front Door sends health probes from its edge locations, including locations that don't receive user traffic. Locations without user traffic reduce their probe frequency. Your origins can therefore receive probes from many locations, and the total probe volume depends on the configured interval and the distribution of client traffic. For more information, see Health probes in Azure Front Door.
Private Link origins
Front Door Premium connects to Private Link origins through a Microsoft-managed regional cluster, which this guide calls a Private Link hub. Unlike the global PoP network, a Private Link hub is a regional component. When you configure Private Link for an origin, you select a supported region for this infrastructure. Microsoft manages the hub and its underlying infrastructure. You don't deploy or manage the hub directly.
For a request that Front Door forwards to a Private Link origin, the traffic path is:
- The client connects to a Front Door PoP.
- The PoP forwards the request over the Microsoft backbone network to the Private Link hub in the region that you selected.
- The hub forwards the request through a private endpoint to your origin.
For example, a client in Ireland might connect to a PoP in Dublin. If you select Australia East for the Private Link hub, Front Door forwards requests that need to reach an origin from that PoP to the hub in Australia East and then to your origin.
The hub region doesn't have to match your origin's region. However, the choice of hub region affects the network path and latency. Although Front Door is a global service, requests to a Private Link origin also depend on this regional infrastructure. For supported regions and more information about the traffic path, see Secure your origin with Private Link in Azure Front Door Premium.
Configuration changes
When you change your Front Door profile configuration through the control plane, Microsoft replicates the changes across the global Front Door infrastructure for the data plane to use. Front Door applies these changes in stages, which allows Microsoft to monitor the health of edge locations as the changes take effect. A single configuration change might take up to 15 minutes to propagate across the global Front Door infrastructure. Back-to-back changes can take longer. For more information, see the Azure Front Door configuration FAQ.
Cache purge operations typically complete within 6 to 7 minutes. For the documented completion window, see the Azure Front Door configuration FAQ.
Azure Resource Health includes a check for whether configuration changes are propagating at the expected rate. You can configure Resource Health alerts to receive notifications about reported health problems that might affect your Front Door profile.
Resilience to transient faults
Transient faults are short, intermittent failures in components. They occur frequently in a distributed environment like the cloud, and they're a normal part of operations. Transient faults correct themselves after a short period of time. It's important that your applications can handle transient faults, usually by retrying affected requests.
All cloud-hosted applications should follow the Azure transient fault handling guidance when they communicate with any cloud-hosted APIs, databases, and other components. For more information, see Recommendations for handling transient faults.
Consider transient faults on the connection from your clients to Front Door separately from faults on the connection from Front Door to your origins.
If your application's availability requirements justify an alternate ingress path, see Resilience to service outages for considerations and implementation guidance. An alternate path doesn't replace client-side transient fault handling.
Client-to-Front Door faults
Clients need to handle transient faults during DNS resolution, HTTP requests, and WebSocket connections:
DNS resolution: Transient faults can occur while clients resolve your application's hostname. Configure clients or resolvers to handle transient DNS resolution failures by using bounded retries.
For DNS records that you control, choose a time-to-live (TTL) that balances reliance on DNS availability with responsiveness to DNS changes. Shorter TTLs require more frequent DNS lookups. Longer TTLs can delay recovery when you change a record to direct clients to another ingress path, because clients might continue to use cached records until they expire. Your records' TTLs don't change Front Door-managed DNS responses or Front Door's health-probe-based routing between origins.
Note
Front Door selects a PoP during DNS resolution. If the DNS request metadata doesn't include the end user's location, Front Door bases its selection on the DNS resolver's location. A resolver located far from your users can therefore direct them to a less suitable PoP and increase latency. Consider the location of your DNS resolvers when investigating routing or latency problems. For resolver placement and client-subnet configuration considerations, see Remote resolver scenario.
HTTP requests: Client applications should handle transient HTTP failures and timeouts. Configure clients to retry idempotent operations by using exponential backoff and randomization. Limit the number of attempts or total retry time, and report the failure if retries don't succeed. Don't automatically retry nonidempotent operations unless your application uses an idempotency mechanism.
WebSocket connections: Front Door currently limits each WebSocket connection to a maximum of two hours and closes connections after five minutes without data transmission in either direction. WebSocket connections can also drop during server upgrades or other maintenance activities.
Clients that use WebSockets need to detect dropped connections and reestablish them, even before the two-hour maximum duration. For more information, see Use WebSocket on Azure Front Door.
Use client-side monitoring, such as real user monitoring, to identify connection failures and request errors experienced by your users. Problems in client software or intermediary network devices might not appear in Front Door's service-side logs.
Front Door-to-origin faults
Front Door's built-in behavior and your origin group configuration affect how Front Door handles origin-side faults:
Built-in retries: Front Door makes best-effort retries for certain origin connection and request failures. These retries aren't guaranteed, so clients still need to handle transient faults. For retry conditions and limitations, see Traffic routing methods for origins.
Health probe configuration: A transient fault within an origin, or in the network path to an origin, might cause a health probe to fail. Configure health evaluation to tolerate isolated failed probes while still detecting sustained failures within the time your application requires. There's a tradeoff: considering more probe results can reduce sensitivity to isolated failures, but can also delay detection of sustained failures. Health probes send separate requests to your origins to inform routing decisions. They don't retry or recover individual failed application requests.
Origin response timeout: Configure the origin response timeout for the expected response time of your origins. A timeout that is too short can interrupt valid requests. A timeout that is too long can delay error responses and consume resources while Front Door waits.
Cache: Front Door might be able to serve content from its cache even when that content has expired or an origin returns error responses. This best-effort behavior can help your application remain partially available when origins are offline, but it isn't guaranteed. Don't rely on cached content remaining available during an origin failure. For more information, see Caching with Azure Front Door.
Resilience to availability zone failures
Azure Front Door is resilient to availability zone outages. Different parts of Front Door use different approaches:
Global edge infrastructure: Azure Front Door's global edge network isn't tied to a single region or availability zone. A zone outage doesn't affect a Front Door profile, and you don't select availability zones or configure zone redundancy for a Front Door profile.
Private Link origin infrastructure: Microsoft distributes the regional Private Link hub infrastructure across multiple availability zones. All supported hub regions have availability zones. Microsoft manages the hub's zone resilience, and you don't select zones or configure zone redundancy for the hub.
If a zone fails, connections that use hub infrastructure in the affected zone might drop, including WebSocket connections. Clients need to handle these interruptions by following the transient fault handling guidance and reestablishing connections when needed.
Front Door automatically shifts traffic to hub infrastructure in surviving zones. Requests might fail while this response takes place. You don't initiate the response or manage infrastructure recovery.
Front Door's resilience doesn't make your origins resilient to an availability zone failure. You're responsible for the zone resilience of the services that host your origins. For more information, see the reliability guides for your origin services.
Resilience to edge location failures
Front Door's global edge network operates independently of Azure regions. An Azure region outage doesn't make the Front Door edge network unavailable.
Front Door detects unhealthy edge locations and automatically directs clients to other healthy edge locations during DNS resolution and request routing. You don't configure or initiate this response. For information about how Front Door selects edge locations, see Edge locations and request routing.
Transient network faults or an unhealthy Front Door edge location might interrupt requests or connections. Clients should handle these interruptions as transient faults and reestablish connections when needed.
Front Door includes network-level routing safeguards that redirect requests to healthy serving infrastructure even when clients use an IP address associated with failed infrastructure. These safeguards help to mitigate traffic blackholing. This protection doesn't depend on the client performing a new DNS lookup. For more information, see Handling request blackholing.
Front Door also uses a short TTL for its edge-location DNS responses. If clients or DNS resolvers cache the DNS responses beyond this TTL, they can delay DNS-based selection of a different edge location. This delay is separate from the network-level routing protection.
Resilience to region-wide failures
Different parts of Front Door respond differently to region-wide failures:
Global edge infrastructure: Front Door's global edge network operates independently of Azure regions. An Azure region outage doesn't require you to redeploy or fail over your Front Door profile. Application availability still depends on having reachable, healthy origins. For information about the edge network's resilience, see Resilience to edge location failures.
Private Link origin infrastructure: Private Link hubs use regional infrastructure in regions that support availability zones. Zone resilience doesn't protect a hub against an outage that makes its entire region unavailable. A complete outage of a hub region disrupts traffic through that hub to your Private Link origins, even if the origins themselves remain healthy.
To mitigate this dependency, you're responsible for configuring multiple Private Link-enabled origins in the same origin group with different Private Link hub regions before an outage. Front Door uses this configuration to route around an unavailable hub. It doesn't automatically create a replacement connection in another region. Account for traffic redistributed from unavailable hubs when assessing capacity in the remaining hubs.
Front Door health probes follow the same network path as application traffic. If a hub region becomes unavailable, probes can detect that the affected origins are unreachable, and Front Door can route new requests to healthy origins through other hub regions. Detection and routing depend on your health probe settings and origin group configuration.
Your application origins can also run in several regions. However, origin placement and Private Link hub region selection are separate choices. Origins that all use the same hub region share that regional dependency. For the supported redundancy pattern, see Private Link with Azure Front Door: frequently asked questions.
Requests and connections that already use the affected hub might fail. Clients need to handle these transient faults by retrying requests or reestablishing connections as appropriate.
When connectivity through the hub recovers and health probes mark an origin healthy, that origin becomes eligible to receive traffic again. Front Door applies your configured origin priority, latency, and weight settings when selecting origins.
If every origin in the group fails health probes, Front Door uses the all-origins-unhealthy routing behavior described in Resource model. This behavior doesn't restore connectivity through an unavailable hub.
Resilience to security threats and misconfiguration
Security threats and incorrect security configuration can make your application unavailable even when Front Door is operating normally. This section highlights origin protection, global configuration changes, and certificate management because they can affect application availability. For broader security recommendations, see Secure your Azure Front Door deployment.
Protect origin access
You're responsible for restricting your origins to traffic from your expected Front Door profile and any explicitly configured alternate ingress path. Otherwise, attackers can bypass your ingress security controls and overwhelm your origins, disrupting your application even when Front Door itself remains healthy.
The following controls help protect access to your origins:
Private Link: For supported origins, you can use Front Door Premium with Private Link. For configuration details, see Secure your origin with Private Link in Azure Front Door Premium.
Public origin access restrictions: For publicly accessible origins, configure access restrictions that only allow traffic through your intended ingress paths. For supported controls and configuration details, see Secure traffic to Azure Front Door origins.
Authentication: For supported origins, Front Door can use a managed identity to authenticate its requests to origins without you managing credentials. For requirements and configuration guidance, see Use managed identities to authenticate to origins.
Protect global configuration
Front Door configuration changes apply across its global infrastructure. A misconfiguration can therefore affect your application globally. Use Azure role-based access control (Azure RBAC) to limit who can change profiles, routes, origins, WAF policies, and certificate settings. Use infrastructure as code, peer review, automated validation, and staged deployments to control changes. Monitor access logs and health probe logs after a configuration change.
An incorrect WAF rule can block legitimate requests across your application. Validate rule changes against representative application traffic before enforcing them. When testing a new WAF policy, use detection mode and review WAF logs before enabling prevention mode. For changes to an existing production policy, validate the changes without disabling its existing protections. For more information, see Best practices for Azure Web Application Firewall in Azure Front Door.
If you use Edge Actions, test code changes with representative requests and verify that your application behaves correctly if the code exceeds the execution time limit. You can edit and test Edge Action code in the Azure portal. These tests run locally rather than through Front Door, so also validate the behavior with requests through your configured route. Edge Action code can run for up to 10 milliseconds. If it exceeds this limit, Front Door stops the code and continues without Edge Action processing. Use versions and execution filters to validate changes before making a version the default, and retain a known-good version for rollback. For more information, see Edge Actions considerations and execution filters.
Manage custom TLS certificates
If you use a custom Transport Layer Security (TLS) certificate, you're responsible for the certificate and the Azure Key Vault that stores it. Renew or rotate the certificate before it expires, maintain Front Door's access to the vault, and verify that Front Door uses the renewed certificate. An expired or otherwise invalid certificate can prevent clients from connecting to your application.
Front Door can automatically adopt newer certificate versions when you configure it to use the latest version from Key Vault. If you select a specific version, you're responsible for updating that selection when you rotate the certificate. For more information, see Certificate autorotation in Azure Front Door.
Protect the key vault and its certificates against unauthorized access or deletion. For guidance, see Secure your Azure Key Vault. To understand Key Vault's resilience to outages and its recovery options after deletion, see Reliability in Azure Key Vault.
Resilience to service outages
Front Door's globally distributed edge infrastructure provides resilience to individual edge location failures. However, a broader service outage or a failure in the network path to Front Door might still prevent clients from reaching your application.
An alternate ingress path can provide extra resilience when your application's availability requirements justify the added cost and complexity. You can provide this path by using another traffic delivery service. This approach adds operational complexity and risks from differences in routing, security, and caching behavior. The added complexity can reduce overall reliability, so evaluate the tradeoffs before adopting it.
You're responsible for preparing and testing the alternate path, deciding when to switch traffic, and restoring the primary path after recovery. Ensure that the alternate path can reach your origins, handle the expected failover traffic, and provide the security controls your application requires. Prepare a switching mechanism, such as a DNS change, that doesn't depend on Front Door configuration changes or access to the Azure portal. For Microsoft's architectural approach, see Global routing redundancy for mission-critical web applications.
Check TLS certificate and origin-access requirements before adopting an alternate path. Front Door-managed certificates aren't exportable, and another ingress service might not support the Private Link connection that Front Door uses to reach your origins. For implementation requirements and examples, see High-availability implementation guide for Azure Front Door and alternate ingress solutions.
Azure Resource Health includes a check for ongoing content delivery issues with your endpoints. You can configure Resource Health alerts to receive notifications about reported health problems that might affect your Front Door profile. Use these notifications alongside application connectivity tests from geographic locations representative of your users to assess the impact and inform decisions about switching ingress paths.
Resilience to portal and management tool outages
An Azure portal outage can prevent you from managing your Front Door profile through the portal without necessarily affecting application traffic. Prepare and test another management method before you need to change configuration during an outage.
You can manage your profile by using the Azure CLI or Azure PowerShell. You can also deploy and configure Front Door by using infrastructure as code tools such as Bicep or Terraform. These alternatives can help when the portal interface is unavailable.
Changes to Front Door configuration use the Azure control plane. If only a management tool is unavailable, Front Door can continue serving application requests by using its deployed configuration. Management access and request serving use separate control-plane and data-plane operations.
Azure Resource Health includes checks for configuration portal accessibility and the ability to manage and change your Front Door configuration. You can configure Resource Health alerts before an outage to receive notifications about reported management problems that might affect your profile.
Backup and restore
Azure Front Door stores your service configuration but doesn't provide persistent storage for your application data. Its cache temporarily stores copies of content to accelerate delivery and improve performance. The cache isn't designed for long-term storage or as a backup of your origin data. Back up application data by using the capabilities of the services that host your origins. For more information, see the reliability guides for your origin services.
To recover from accidental deletion or incorrect configuration changes, define your Front Door profiles and associated configuration, including routes, origin groups, origins, and WAF policies and exclusions, by using infrastructure as code. Store the definitions in source control so that you can redeploy a known-good configuration.
Redeploying Front Door configuration doesn't restore your origin data or custom TLS certificates stored in Azure Key Vault. Protect these dependencies separately. For certificate and Key Vault considerations, see Manage custom TLS certificates. Test that you can redeploy your configuration and reconnect its dependencies before you need to recover them. Include any required custom-domain validation and private endpoint connection approvals in these tests.
Resilience to service maintenance
Microsoft applies service updates and performs maintenance on Front Door's infrastructure. Microsoft manages these activities, but maintenance can interrupt individual connections, including long-running WebSocket connections.
Configure clients to handle transient request failures and detect and reestablish dropped connections. For more information, see Client-to-Front Door faults.
Review Azure Service Health planned maintenance for maintenance notices that Microsoft publishes for your resources.
Service-level agreement
The service-level agreement (SLA) for Azure services describes the expected availability of each service and the conditions that your solution must meet to achieve that availability expectation. For more information, see SLAs for online services.
The Front Door availability SLA specifies customer-operated measurement requirements. Use an independent measurement system to request test content from your origin through Front Door. Review the SLA for the required measurement locations, test frequency, test-file requirements, and other conditions.
The Front Door SLA isn't an end-to-end availability guarantee for your application. Your application also depends on the availability of its origins and other services. Review the SLA for each Azure service that your application uses.
Related content
For more information about Front Door and its configuration and monitoring options, see:
- Azure Front Door overview
- Origins and origin groups in Azure Front Door
- Health probes in Azure Front Door
- Azure Front Door routing methods
- Best practices for Azure Front Door
- Monitor metrics and logs in Azure Front Door
For more detail about Front Door's platform resilience and application architecture patterns, see: