Back to results for “Amazon Route 53 & DNS Management”
AWS › Amazon Route 53 & DNS Management

How do Route 53 routing policies, such as weighted and latency based routing, affect how traffic is directed?

Intermediate

Answer

Route 53 supports several routing policies beyond simple one to one mapping, including weighted routing which lets you split traffic between multiple resources based on assigned percentages, useful for gradual rollouts, and latency based routing which automatically directs users to the AWS region that provides the lowest network latency for their specific location, improving performance for globally distributed applications.
aws route53 change-resource-record-sets --hosted-zone-id ABC123 --change-batch '{"Changes":[{"Action":"CREATE","ResourceRecordSet":{"Name":"app.example.com","Type":"A","SetIdentifier":"version-2","Weight":10,"TTL":60,"ResourceRecords":[{"Value":"192.0.2.2"}]}}]}'
Real-world example A software company uses weighted routing to send only ten percent of traffic to a newly deployed version of its application, gradually increasing that percentage as confidence in the new version grows.

Common follow-ups: What is the difference between latency based routing and geolocation routing?;How does failover routing work alongside health checks?