DNS
Amazon Route 53
Turns your domain name into the address of your entry point.
In a monolith
One record → your server
A single A record points at the server’s IP. Moving servers means waiting for cached records (TTL) to expire.
In a distributed system
Routing policies
Weighted, latency-based, geo and failover records steer users to the nearest healthy region or entry point.
On AWS
Amazon Route 53
Alias records point at CloudFront, ALB or API Gateway. Health checks plus failover routing move users away from an unhealthy region.
- Route 53 simple routing$One record, one target
- Route 53 failover routing$Primary/secondary with health checks — the basis of active-passive multi-region
- Route 53 latency routing$Sends each user to the lowest-latency region
- Reach for it when
- From day one — every public system has a domain.
- What it costs you
- Answers are cached (TTL), so changes propagate slowly
- DNS failover is only as fast as clients respect TTLs
- When it dies
- If resolution fails nobody can find you, even with every server healthy. Managed DNS is extremely available — misconfiguration is the usual culprit.
Interview follow-ups
Why isn’t DNS enough for load balancing?
Resolvers and clients cache answers, can’t see server health, and spread load unevenly. DNS picks a region or entry point; a load balancer spreads requests across instances.
What does the TTL trade off?
Low TTL: faster failover and changes, more DNS queries. High TTL: fewer lookups, slow changes.
How does DNS help with multi-region?
Latency/geo routing sends users to the nearest region; failover routing with health checks shifts everyone to the standby region.