Why Does Cloud Computing Matter to Small Busi
Small businesses are now expected to operate with the s...




Anycast is a network addressing method in which the same IP prefix is announced from many geographically separate locations at once, and the internet's own routing system delivers every request to whichever site is currently closest by path length. First defined in RFC 1546 in 1993 and formalized for IPv6 in RFC 2526, it delegates your traffic-distribution problem to BGP, the protocol that glues autonomous systems together. That delegation is exactly what makes it fast, fragile, and worth understanding before you touch it.
Most explanations fail engineers because they frame anycast as "a load balancer but bigger." That framing is wrong, and it leads to broken designs. A load balancer is a box you own, with health checks you configure, distributing requests across backends you can enumerate. Anycast has no box, no session table, and no way to enumerate which site received a given user five minutes ago. The internet's routers — hundreds of thousands of them, owned by thousands of autonomous systems — make the per-packet delivery decision using a routing protocol you influence but never control.
This article rebuilds the concept from the protocol up: what BGP actually does when ten sites announce one prefix, why that buys you millisecond failover and free DDoS dilution, and the three specific ways anycast deployments fail (state loss, route leaks, withdrawal storms). It closes with a build-vs-buy decision table, because the honest answer for most teams is not "build an anycast network" — it is "rent one from someone who already announced the prefix."
The mechanics reduce to one sentence: each site runs BGP, announces an identical prefix, and every router on the path picks the announcement with the shortest AS-path, which in practice tracks network geography. An autonomous system (AS) is a routing domain under one policy — a telco, a cloud provider, your company if you register an ASN. BGP's default tie-breaking rule prefers the shortest AS-path, so a user in Frankfurt is handed to the Frankfurt site and a user in São Paulo to the São Paulo site, with zero application code involved.
Three properties fall out of that single rule, and they are the entire value proposition:
The counter-intuitive part: none of this is configured per request or per user. An operator sets policy (local preference, AS-path prepending, communities) at the edges of the routing domain, and the distributed decision-making happens in thousands of routers the operator will never log into.
The DNS root server system is the canonical existence proof that anycast works at planetary scale: thirteen IP addresses (a.root-servers.net through m.root-servers.net) serve the entire hierarchical lookup chain, yet behind those addresses sit well over a hundred physical instances spread across continents, each pair sharing one IP only because anycast makes it coherent. Before anycast, the root infrastructure was genuinely thirteen machines in thirteen places — a single point of failure per letter, and a fat target. The switch to anycast, which the roots adopted through the 2000s, multiplied the effective footprint without multiplying the address space, so an attack or an outage degrades one instance rather than the letter of the alphabet.
The root operators picked anycast for reasons that generalize to any service you run:
The lesson to steal for your own architecture: anycast is a match made for request/response workloads where every node can answer every request. DNS, public APIs, token validation endpoints, time servers (NTP), and object cache front-ends fit. Anything with a session, a queue, or a server-side conversation in progress needs the caveats in the state section below.
The decision between anycast and DNS-based global load balancing (GSLB) is a decision about who moves traffic during an incident: the routing system in seconds, or the resolver cache in minutes. Both are legitimate; they operate on different clocks and different failure surfaces. The November 2025 comparison and a June 2026 global load balancing analysis agree on the numbers below, and they should anchor your choice.
| Dimension | Anycast (BGP-level) | DNS / GSLB failover |
|---|---|---|
| Failover speed | Milliseconds–seconds (BGP withdrawal + convergence) | Seconds–minutes (bounded by record TTL and resolver caches) |
| Granularity | Per prefix, per site; cannot pin a user to a site | Per name; can return different IPs per region, per health check |
| Health input | BGP session state / scripted announcements | Active probes: HTTP checks, synthetic tests, capacity signals |
| Stateful traffic | Dangerous: in-flight connections break on re-home | Manageable: low TTLs + pinning reduce surprise moves |
| Cost of entry | Own ASN + routable prefix + BGP at 2+ PoPs (or rent) | Any DNS provider with health-checked records |
| Failure mode | Route leaks and withdrawals propagate globally, fast | A DNS outage — cached records soften it |
The conclusion the table forces: anycast wins when you need sub-10-second regional failover for stateless traffic; GSLB wins when you need per-user affinity, per-region content, or fine-grained health signals without owning routing assets. Google's own SRE book — which documents the GSLB approach the company uses internally — is candid that DNS-based distribution is the workhorse precisely because path selection is too important to leave fully to BGP in complex deployments. Mature systems layer both: anycast for the front-door edge (DNS, TLS termination, static cache), GSLB behind it for the stateful tiers.
Anycast has one hard technical limit inherited from IP itself: a return packet from an anycast address is not guaranteed to reach the same instance that sent it, which is why an anycast address can serve requests but cannot safely originate long-lived stateful conversations. The mechanism is not subtle. A TCP connection is pinned by four values (source IP, source port, destination IP, destination port), and the destination IP is the anycast address — shared by every site. If the route to your site is withdrawn mid-conversation, the next packet from the client is delivered to a different site, an instance that has no socket for that four-tuple. The client gets a connection reset, or worse, a silent stall.
This produces a hard classification of workloads:
Related and equally binding: anycast addresses are not valid source addresses for client-initiated traffic, because replies route to "the nearest instance," not to the originating host. An anycast endpoint listens; it does not dial out.
Anycast's weaknesses are the mirror image of its strengths: the same global, fast-propagating mechanism that heals failures spreads them too. Four failure modes account for nearly every public anycast incident, and each has a documented, recent example.
A 2026 anycast-specific routing analysis published in late October 2026 adds a structural observation worth internalizing: anycast's "self-healing" property also amplifies configuration errors — one bad policy line propagates to every node announcing the prefix simultaneously, so error and recovery travel the same rails.
The admission price for self-operated anycast is an ASN, a globally routable prefix, and BGP sessions at two or more points of presence — assets that cost real money and carry permanent obligations, not a checkbox in a cloud console. Both a June 2026 Hong Kong infrastructure guide and a November 2025 multi-region deployment walkthrough state the requirements identically, and RIR documentation confirms the process.
The honest cost picture: ASN fees, prefix acquisition (the dominant cost for IPv4), monthly transit or colocation at each PoP, engineering time for routing policy and monitoring, and the ongoing risk obligations of keeping announcements clean. For a two-site setup the hard costs typically land in the low thousands of US dollars per year before transit — an amount that buys a lot of managed service instead.
For most engineering teams the right answer is not to own routing assets but to buy anycast behavior at the layer where it pays: managed DNS with anycast authority servers, a CDN or WAF with an anycast edge, or a load-balancer-as-a-service that announces on your behalf. The 2026-era consensus across the deployment guides cited above is blunt: a single VPS or even a small fleet cannot announce anything, because the provider owns the prefix — and providers' "anycast" add-ons are precisely the productized version of the machinery above.
| Team / workload profile | Recommended architecture | Why |
|---|---|---|
| Solo dev, stateless API or personal site | Managed anycast DNS + CDN in front of one origin | Failover and DDoS dilution without owning a prefix; costs scale from zero |
| Startup with global users, edge-cacheable content | CDN/WAF anycast edge, regional origins, shared session store | Sub-second failover at the edge; state stays central |
| SaaS with strict latency SLOs on reads | Anycast front tier + GSLB for writes, per-region databases | Reads follow geography; writes follow health and consistency rules |
| Infrastructure company (DNS, time, storage edge) | Own ASN + prefix, 3+ PoPs, RPKI, IRR, automated withdrawal | Full control of failover cadence; the product is the network |
| Anyone with long-lived connections (games, websockets, SSH) | Anycast only at the handshake layer; unicast or GSLB for the session | Mid-conversation re-homing resets connections by construction |
When you evaluate a vendor's anycast claim in November 2026, verify three things: published PoP count and whether all PoPs announce one prefix (ask for the ASN), whether health-driven withdrawal is automatic and how fast, and whether RPKI-signed announcements are on record in public routing data. A provider that cannot answer those is selling the word, not the mechanism.
You can empirically confirm anycast behavior from any Linux box with standard tooling, in under ten minutes. These commands distinguish "the nearest site answered" from "a load balancer answered" and are the same checks the 2026 deployment guides prescribe for post-launch verification.
dig +short www.example.com from three geographically distinct machines (a laptop, two cloud instances in different regions). An anycast service returns the same address everywhere; a per-region DNS scheme returns different addresses.traceroute -n 1.1.1.1 from each location. The hops terminate in different cities (Frankfurt, Singapore, Los Angeles) while the destination IP is identical — the visual signature of anycast.ping -c 10 1.1.1.1 from each site. Medians within ~30 ms of the metro latency indicate the nearest instance; uniform ~150 ms+ medians from everywhere mean you are crossing an ocean — no local instance for you.dig CHAOS TXT id.server @1.1.1.1 where supported) often name the specific PoP answering.The deployment sequence that survives production has seven ordered steps; skipping the middle ones is how teams learn the state lesson live. The sequence synthesizes the staged rollout checklists from the two 2026 deployment guides and the Cloudflare post-mortem's blast-radius directive.
Teams running this stack on cloud instances should also treat each site's capacity as a routing input: a small region whose instances are CPU-saturated during a neighboring region's failover will turn a routing success into an application outage. Sizing each PoP to absorb its neighbors' baseline is the rule the 2026 guides converge on.
A reference pattern that fits most teams with global users: put anycast (or an anycast service) at the two layers where traffic is stateless, and keep sessions pinned behind them. The pattern matches the "hybrid architecture" tier the 2026 Hong Kong guide recommends for large platforms and mirrors how the big public deployments are actually organized.
The economical way to assemble the same shape, if you do not own an ASN: the edge tier can be a CDN or anycast DNS product, the origins a pair of affordable lightweight cloud instances — for example the 2 vCPU / 2 GB / 60 GB NVMe tier that SurferCloud's ULightHost line prices at $3.9 per month for new users as of November 2026, renewed at $9.5 per month — one in Hong Kong and one in Los Angeles. What matters is that each origin holds a full copy of the stateless service and the edge can reach either; you get geographic failover from the provider's routing and state safety from your architecture. If you later host that edge tier yourself, keep the operational basics tight — the same checklist that keeps any production box alive (monitoring CPU and memory the way our Linux CPU usage guide walks through, renewing TLS certificates on schedule) protects the sites your routing depends on.
No. A CDN is an application-layer cache replicated across PoPs; anycast is a network-layer addressing and routing technique. Many CDNs use anycast internally — it is the reason a CDN's edge IP answers from a nearby city — but you can run anycast with no caching at all (DNS roots do exactly that), and you can run a CDN without owning the anycast machinery if you buy the edge from someone else.
Not really. A VPS gives you an IP inside the provider's prefix, and announcing your own prefix requires your own ASN, a routable /24 (IPv4) or /48 (IPv6), and BGP sessions with transits — assets a single rented instance cannot host. Both 2026 infrastructure guides state this flatly: individual servers cannot originate announcements. The realistic equivalents are provider anycast add-ons or moving the stateless tier onto a service that already runs anycast.
It protects against volumetric attacks by diluting them, not against application-layer attacks. If a botnet sends 2 Tbps of junk at one anycast address, the traffic splits across sites and each site's pipe absorbs a fraction — which is how the large public networks survive quarterly attack volumes in the millions of events. But an HTTP-level attack that looks like legitimate traffic, or an attack concentrated near one PoP, still needs rate limiting, WAF rules, and scrubbing. Anycast widens the moat; it does not replace the gate.
A BGP policy change on one router matched too many routes and withdrew nearly all announcements from that router, and the withdrawal propagated to 19 data centers within seconds, removing them from the internet simultaneously. Anycast was not the vulnerability's cause or its cure — it was the amplifier. The resilience anycast gives you against site failure is the same speed that spreads operator error, which is why the post-incident industry lesson was bounding the blast radius of routing changes, not abandoning the topology.
Only with reconnection logic on both ends. A mid-stream route withdrawal delivers subsequent packets to a different site that has no socket for the conversation, producing resets. Production patterns: terminate anycast at the handshake/edge layer and hand sessions to unicast backends; or treat every stream as resumable with client retry and resumption tokens, so a re-home costs one reconnect instead of user-visible failure. A managed edge in front of your own boxes is the cheapest hybrid — for example anycast TLS termination at a CDN answering to a pair of regional origins, the shape our Hong Kong edge deployment guide walks through for Asia-facing traffic.
Round-robin DNS rotates the addresses a name resolves to, and each client stays pinned to one address until its cache expires — so failover is bounded by TTLs (minutes, typically). Anycast rotates nothing; one address is live everywhere, and the routing system moves traffic near-instantly when a site withdraws. The two also compose badly if mixed naively: pointing round-robin DNS at anycast sites hides which site failed, muddying both health checks and debugging.
Usually not for latency — one well-placed unicast site with a CDN in front achieves the same user experience. Anycast still adds two things: a layer of volumetric DDoS dilution, and failover if you later expand. The pragmatic move for single-market products is a CDN/WAF (which is anycast you rent) in front of one or two origins, deferring the routing-asset question until geography actually hurts.
Small businesses are now expected to operate with the s...
Cloud costs can spiral out of control if not managed ef...
For personal developers, students, indie hackers, and s...