Anycast is a routing method in which the same IP address is announced from many locations, and the network delivers each packet to one of them, normally the closest in routing terms. RFC 4786 defines it as making a service address "available in multiple, discrete, autonomous locations, such that datagrams sent are routed to one of several available locations."
Why does anycast matter?
Anycast lets one address serve the whole world without the client knowing where the servers are. Cloudflare's documentation on Cloudflare IP addresses describes its address ranges as "the backbone of Cloudflare's anycast network", with "the same IP address" announced "from data centers worldwide, so each visitor's request is routed to a nearby data center." That is how a user reaches a nearby point of presence without a lookup service choosing one.
Spreading one address across many sites also spreads attack traffic. Cloudflare's How Cloudflare works says the anycast address "is used to distribute traffic amongst Cloudflare's network, which protects your website or app from DDoS and other attacks".
What does anycast mean for application design?
The routing system, not the application, decides which site receives a packet, and that decision can change when routes change. RFC 4786 states that the routing system's choice "ought to be stable for substantially longer than the expected transaction time". It contrasts very short transactions, such as "DNS transactions over UDP transport", with "far longer-lived transactions (e.g., bulk file downloads and audio-visual media streaming)".
EOXLABS designs for that property in three ways:
- Any request can land anywhere. Request handling stays stateless at the edge, and shared state lives in a store every location can reach, such as a Durable Object.
- Long connections reconnect and resume. WebSocket and streaming clients carry a resume token or sequence number, so a dropped connection picks up where it left off. This matters most for real-time voice systems and messaging.
- Location is observed, not assumed. Logs record which data center handled each request, so routing surprises show up in data.
These choices are part of EOXLABS's edge architecture work.
Where did anycast come from?
RFC 1546, "Host Anycasting Service" (November 1993), set out the idea for situations where a host wants a service "but, if several servers support the service, does not particularly care which server is used." RFC 4786, published in 2006 as a Best Current Practice, uses DNS servers as its running example. Edge platforms now apply the same idea to entire HTTP request paths, and network teams in telecommunications weigh the same stability trade-offs.
What is anycast confused with?
- Load balancing. Anycast picks a site by routing policy, not by server load. A busy site keeps receiving traffic unless the operator withdraws or adjusts its announcement.
- Geography. "Nearest" means nearest by routing path. A user can land in a data center that is not the closest on a map.
- GeoDNS. GeoDNS returns different addresses based on where a resolver appears to be. Anycast returns one address and lets routing choose.
The EOXLABS glossary defines related networking terms.