One IP, many physical locations, the network picks the closest.
Anycast and BGP: one ip, many physical locations, the network picks the closest
move the first decision closer to the user
Long TCP flows can rebalance to a new site mid-flight.
Anycast announces the same IP from many points; BGP routing carries clients to the nearest one. It powers DNS, public CDN edges, and global load balancers.
BGP picks routes based on AS-path and policy; 'nearest' is in AS-hops, not always physically closest.
Anycast is great for stateless services (DNS, TLS termination) and TCP with short flows; long-lived connections can hop sites on route changes.
Major clouds offer global anycast IPs (e.g., AWS Global Accelerator, GCP Global LB) so you can build global front doors.
Replacing GeoDNS with anycast for an API.