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.

PolicyHow it picksUse case
SimpleOne answerA single website
WeightedBy percentageSend 10% of users to a new version
LatencyLowest-latency Region for the userMulti-Region apps
FailoverPrimary unless unhealthy, then secondaryDisaster recovery
GeolocationUser's country or continentLocal content or legal requirements
GeoproximityDistance, with an adjustable biasShift traffic between Regions gradually
MultivalueSeveral healthy answers at randomSimple client-side load spreading
IP-basedThe user's IP rangeRouting 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.

How it flows
  1. 1User asks for

    api.notesnap.app

  2. 2Route 53

    Checks policy + health

  3. 3Primary healthy?

    Return us-east-1

  4. 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. 1. You want to send 5% of traffic to a new version of your site. Which policy?

  2. 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