- A user requests a URL; the browser asks a recursive DNS resolver to resolve the domain.
- The recursive resolver queries Azure Traffic Manager for the domain.
- Traffic Manager evaluates configured endpoints using the chosen routing method and health probes.
- Traffic Manager returns the selected endpoint IP to the resolver.
- The resolver hands that IP to the client, and the client connects directly to that endpoint.
Priority routing (active–passive failover)
How it works:- The client’s DNS resolver queries Traffic Manager for the domain.
- Traffic Manager orders endpoints by configured priority (primary = priority 1, then failover A = priority 2, etc.).
- Health probes continuously check endpoints.
- If the primary endpoint is healthy, Traffic Manager returns its IP. If not, Traffic Manager returns the highest-priority healthy endpoint (failover A, then failover B).
- The resolver returns the IP to the client, which connects directly to that endpoint.
- Disaster recovery (active/passive)
- Primary/backup scenarios where a single endpoint should carry traffic unless it fails

Weighted routing (traffic distribution)
How it works:- The resolver forwards the DNS query to Traffic Manager.
- Traffic Manager considers all enabled, healthy endpoints and their assigned weights.
- An endpoint is chosen randomly, proportional to its weight. Example: Test A weight 5 vs Region B weight 50 -> Region B receives the majority of traffic.
- Unhealthy endpoints are excluded from selection.
- The resolver receives the chosen endpoint IP and returns it to the client.
- Gradual rollouts, canary deployments
- A/B testing
- Balanced traffic distribution across multiple deployments

Performance (latency) routing
How it works:- The resolver queries Traffic Manager for the domain.
- Traffic Manager uses the source IP of the DNS query (usually the recursive resolver’s IP) and a latency table to estimate which endpoint provides the lowest network latency for the user.
- Traffic Manager verifies endpoint health and returns the healthy endpoint with the lowest estimated latency.
- The resolver returns that endpoint’s IP to the client; the client connects directly to it.
- Performance routing helps globally distributed users reach the nearest/lowest-latency endpoint.
- Accuracy depends on the DNS query source IP. If the resolver is far from the end user (some public resolvers), the selected endpoint may not be the actual lowest-latency server for the client.

Geographic routing (region-based routing)
How it works:- The resolver forwards the DNS query to Traffic Manager.
- Traffic Manager determines the geographic location of the query from the source IP (typically the resolver IP) and maps that location to a configured endpoint or nested profile.
- Traffic Manager returns the endpoint or nested profile assigned to that geographic region. Examples:
- Queries from Germany → Germany endpoint
- Queries from Asia → nested profile that routes to Asia-specific endpoints
- Unmapped regions → global/default endpoint
- The resolver returns the selected endpoint IP to the client, which connects directly to it.
- Data residency and compliance
- Localization (region-specific content/language)
- Directing users to region-specific services

Comparison table
| Routing Method | Best for | Behavior | Typical use cases |
|---|---|---|---|
| Priority | Active–passive failover | Always prefer highest-priority healthy endpoint | Disaster recovery, primary/backup |
| Weighted | Controlled distribution | Random selection proportional to weight | Canary releases, A/B testing, staged rollouts |
| Performance (Latency) | Lowest latency for users | Chooses endpoint with lowest estimated network latency | Global load distribution for improved response times |
| Geographic | Region-based control | Routes by geographic mapping of DNS query source IP | Compliance, data residency, localized content |
Traffic Manager makes routing decisions at the DNS layer. DNS TTL values determine how quickly routing changes propagate — lower TTLs enable faster failover but increase DNS query volume. Configure TTLs according to your failover and traffic requirements.
Traffic Manager does not proxy or inspect application traffic. Ensure health probes (protocol, path, interval, and expected response codes) are configured correctly so unhealthy endpoints are excluded from DNS responses.
Key operational considerations
- Health probes are critical: misconfigured probes can cause healthy endpoints to be considered unhealthy, or vice versa.
- DNS caching and TTL: resolver and client caching affects failover speed. Test TTLs and probe intervals together to achieve the desired recovery behavior.
- Public DNS resolvers: some public resolvers may not be topologically close to end users, which can reduce accuracy for Performance and Geographic routing.
- Nested profiles: Geographic routing supports nested profiles to combine region-specific logic with other routing methods.
- Azure Traffic Manager makes all routing decisions at the DNS level; user traffic always flows directly to the selected endpoint.
- Use Priority for active–passive failover, Weighted for controlled distribution, Performance for low-latency routing, and Geographic for compliance and localization.
- Configure health probes and TTLs carefully to ensure the expected routing behavior.