Networking

Latency and Geolocation Routing

Latency routing favors the lowest measured latency; geolocation routes by the user’s geographic location.

How it works

Amazon Route 53 can answer DNS queries using latency-based or geolocation routing. Latency routing selects among configured AWS Regions using AWS latency measurements; it does not measure each individual connection in real time. Geolocation routing selects a record based on the estimated location of the DNS query, such as a country or continent. The closest Region geographically is not necessarily the one with the lowest network latency.

When to use it

Choose it when the requirement is optimize response time versus route according to geographic rules.

Real-world example

A streaming service uses geolocation records to select a French catalog endpoint for queries estimated to originate in France. A game service uses latency records for endpoints in two AWS Regions to select a likely lower-latency endpoint.

Common pitfall

Geolocation routing is not a legal compliance boundary: IP-based location is an estimate and DNS answers can be cached. Configure a default record for unmapped locations, and enforce any territorial restrictions in the application and supporting controls.

Often confused with

Compare its service boundary with Failover Routing and Health Checks; choose from the workload requirement.

References

Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:

SAA-C03 study guide and learning resources

Understand it for real with 3D models and simulated labs

Connect the concept to a working architecture.

Start learning