Routing Policies & Health Checks
Send users to the fastest Region, split traffic for testing, or fail over automatically.
1 min read
A routing policy decides which answer Route 53 returns when a name has several possible targets.
| Policy | How it picks | Use case |
|---|---|---|
| Simple | One answer | A single website |
| Weighted | By percentage | Send 10% of users to a new version |
| Latency | Lowest-latency Region for the user | Multi-Region apps |
| Failover | Primary unless unhealthy, then secondary | Disaster recovery |
| Geolocation | User's country or continent | Local content or legal requirements |
| Geoproximity | Distance, with an adjustable bias | Shift traffic between Regions gradually |
| Multivalue | Several healthy answers at random | Simple client-side load spreading |
| IP-based | The user's IP range | Routing specific networks |
Health checks
A health check probes an endpoint (e.g. https://api.notesnap.app/health) from several locations. Combined
with failover, latency, or weighted policies, Route 53 automatically stops returning unhealthy targets.
- 1User asks for
api.notesnap.app
- 2Route 53
Checks policy + health
- 3Primary healthy?
Return us-east-1
- 4Primary down?
Return eu-west-1
Key takeaways
- Weighted for gradual rollouts, latency for speed, failover for disaster recovery.
- Geolocation routes by where users are.
- Health checks make routing policies react to outages automatically.
Check your understanding
Pick an answer to see the explanation.
1. You want to send 5% of traffic to a new version of your site. Which policy?
2. Your primary Region goes down. Which setup moves users to a backup automatically?
Next in “Run a classic web app”
You finished Route 53. Continue with the CloudFront tutorial