AWSDOP-C02
On this page
Beginner-friendly overview

Route 53

Route 53 is AWS's DNS (Domain Name System) service. It translates human-readable domain names like api.mycompany.com into IP addresses that computers use to connect to your servers. It also does much more than basic DNS β€” it can route traffic intelligently based on geography, latency, health, and weights.

DNS in Plain Terms

When you type a URL into a browser, your computer needs to find the IP address of the server hosting that site. It asks a DNS resolver, which consults a hierarchy of DNS servers until it finds the answer. Route 53 is the authoritative DNS server for your domains β€” the final authority that answers "what is the IP address for api.mycompany.com?"

DNS query β†’ hosted zone β†’ routing policy picks the answer (health checks filter) DNS query "api.mycompany.com?" Hosted zone records for the domain Routing policy weighted Β· latency Β· failover… us-east-1 healthy βœ“ chosen eu-west-1 unhealthy βœ— skipped Health checks feed the routing decision: unhealthy endpoints are removed from DNS answers automatically.

Routing Policies

Route 53's power comes from its routing policies, which determine which answer to return when a DNS query arrives:

Simple β€” return one IP address. The default, no-frills option.

Weighted β€” split traffic between multiple endpoints by percentage. Send 90% of traffic to your stable deployment and 10% to a new version for canary testing.

Latency-based β€” Route 53 measures latency from the requester to each of your endpoints in different regions and routes to the one with the lowest latency. Users in Tokyo get routed to your Tokyo endpoint; users in Paris to your European one.

Failover β€” designate a primary and secondary endpoint. Route 53 monitors the primary with health checks and automatically fails over to the secondary if the primary becomes unhealthy.

Geolocation β€” route based on the country or continent the query comes from. Send European users to servers in eu-west-1, Asian users to ap-southeast-1.

Geoproximity β€” like geolocation, but lets you shift traffic toward or away from specific regions using a "bias" value.

Routing policies as questions the resolver asks β€” memorize each policy by the one question it answers:
Simple = "just tell me the IP" Β· Weighted = "what percentage?" Β· Latency = "what's fastest?" Β· Failover = "is the primary alive?" Β· Geolocation = "where is the user FROM?" (their country) Β· Geoproximity = "what's NEAR the user?" (distance + bias dial) Β· Multivalue = "give me several healthy options" Β· IP-based = "which network is the user on?"

Health Checks

Route 53 can monitor your endpoints (HTTP, HTTPS, TCP) and mark them healthy or unhealthy. This feeds into failover and other routing policies. You can also create calculated health checks that aggregate the health of multiple underlying checks β€” useful for "consider this endpoint healthy only if at least 2 of 3 instances are healthy."

Private Hosted Zones

Route 53 can serve DNS internally within a VPC using private hosted zones. Your services can address each other as orders.internal instead of by private IP, making the architecture more readable and easier to change.