When would you use anycast instead of DNS steering, and what are its limits?
Sketch your own answer first, then compare it with the one below.
A strong answer
Anycast announces one address from many sites. The network sends each packet to the nearest announcement. Failover follows routing convergence, which is usually faster than waiting for caches to expire, and no resolver holds a stale answer because the address does not change.
It suits short, stateless exchanges, such as DNS itself, and fronts that terminate connections near the user and forward them. Many designs use DNS for the name and anycast for a stable address.
The limits are that routing cost is not always the fastest path, a route change can move a user to another site mid-connection and reset a long TCP connection, and it balances by geography rather than load. A site under overload must withdraw its announcement to shed traffic.
Sources
- Paul Mockapetris (1987). RFC 1034: Domain Names, Concepts and Facilities.