{"id":323,"date":"2026-06-16T09:00:00","date_gmt":"2026-06-16T07:00:00","guid":{"rendered":"https:\/\/mokrane-assam.com\/index.php\/2026\/06\/16\/cloudflare-anycast-every-server-en\/"},"modified":"2026-06-16T09:00:00","modified_gmt":"2026-06-16T07:00:00","slug":"cloudflare-anycast-every-server-en","status":"publish","type":"post","link":"https:\/\/mokrane-assam.com\/index.php\/2026\/06\/16\/cloudflare-anycast-every-server-en\/","title":{"rendered":"Cloudflare Anycast: why every server runs everything"},"content":{"rendered":"\n<div class=\"mkz-callout\" style=\"border-left:4px solid #38bdf8;background:#f1f5f9;padding:14px 18px;margin:0 0 18px;border-radius:6px\"><strong style=\"color:#17263f\">What you&rsquo;ll take away :<\/strong> <span style=\"color:#17263f\">Cloudflare does not split functions across specialized farms: every server, in every datacenter, runs every service. Combined with Anycast (the same IPs announced everywhere), this yields single-pass inspection, native DDoS absorption and failure isolation \u2014 at the cost of limited control over which POP answers you.<\/span><\/div>\n\n\n\n<figure class=\"mkz-diagram\" style=\"margin:0 auto 14px;max-width:920px\">\n<svg viewBox=\"0 0 920 292\" width=\"100%\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" font-family=\"Arial, 'Segoe UI', Helvetica, sans-serif\" role=\"img\" aria-label=\"Specialized clusters vs \u201cevery server runs every service\u201d\">\n  <defs>\n    <linearGradient id=\"g11346\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"0\">\n      <stop offset=\"0\" stop-color=\"#17263f\"\/><stop offset=\"1\" stop-color=\"#0f172a\"\/>\n    <\/linearGradient>\n  <\/defs>\n  <rect x=\"0\" y=\"0\" width=\"920\" height=\"292\" rx=\"10\" fill=\"#f8fafc\" stroke=\"#e2e8f0\"\/>\n  <path d=\"M10 0 h900 a10 10 0 0 1 10 10 v34 h-920 v-34 a10 10 0 0 1 10 -10 z\" fill=\"url(#g11346)\"\/>\n  <text x=\"18\" y=\"28\" fill=\"#ffffff\" font-size=\"17\" font-weight=\"700\">Specialized clusters vs \u201cevery server runs every service\u201d<\/text>\n  <text x=\"904\" y=\"27\" fill=\"#38bdf8\" font-size=\"12\" font-weight=\"700\" letter-spacing=\"3\" text-anchor=\"end\">NET BY ME<\/text>\n  <g transform=\"translate(0,44)\">\n<rect x=\"16\" y=\"8\" width=\"432\" height=\"232\" rx=\"10\" fill=\"#ffffff\" stroke=\"#C8102E\" stroke-width=\"1.5\"\/><text x=\"232.0\" y=\"129.0\" font-size=\"15\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\"><\/text><text x=\"232\" y=\"30\" font-size=\"14\" fill=\"#C8102E\" font-weight=\"700\" text-anchor=\"middle\">Specialized clusters (chaining)<\/text><rect x=\"40\" y=\"58\" width=\"120\" height=\"36\" rx=\"6\" fill=\"#fdeeee\" stroke=\"#C8102E\" stroke-width=\"1.5\"\/><text x=\"100.0\" y=\"81.0\" font-size=\"12\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">WAF farm<\/text><rect x=\"40\" y=\"108\" width=\"120\" height=\"36\" rx=\"6\" fill=\"#fdeeee\" stroke=\"#C8102E\" stroke-width=\"1.5\"\/><text x=\"100.0\" y=\"131.0\" font-size=\"12\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">Cache farm<\/text><rect x=\"40\" y=\"158\" width=\"120\" height=\"36\" rx=\"6\" fill=\"#fdeeee\" stroke=\"#C8102E\" stroke-width=\"1.5\"\/><text x=\"100.0\" y=\"181.0\" font-size=\"12\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">Proxy farm<\/text><rect x=\"240\" y=\"108\" width=\"170\" height=\"40\" rx=\"6\" fill=\"#ffffff\" stroke=\"#475569\" stroke-width=\"1.5\"\/><text x=\"325.0\" y=\"133.0\" font-size=\"11\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">Traffic hairpins between tiers<\/text><line x1=\"160\" y1=\"76\" x2=\"238\" y2=\"120\" stroke=\"#475569\" stroke-width=\"2\" stroke-dasharray=\"6 5\"\/><polygon points=\"238,120 232.1,112.1 228.2,119.1\" fill=\"#475569\"\/><line x1=\"160\" y1=\"126\" x2=\"238\" y2=\"126\" stroke=\"#475569\" stroke-width=\"2\" stroke-dasharray=\"6 5\"\/><polygon points=\"238,126 229.0,122.0 229.0,130.0\" fill=\"#475569\"\/><line x1=\"160\" y1=\"176\" x2=\"238\" y2=\"132\" stroke=\"#475569\" stroke-width=\"2\" stroke-dasharray=\"6 5\"\/><polygon points=\"238,132 228.2,132.9 232.1,139.9\" fill=\"#475569\"\/><text x=\"40\" y=\"222\" font-size=\"15\" fill=\"#C8102E\" font-weight=\"700\">&#10007;<\/text><text x=\"62\" y=\"222\" font-size=\"12\" fill=\"#17263f\" font-weight=\"400\" text-anchor=\"start\">Multiple hops, uneven capacity<\/text><rect x=\"472\" y=\"8\" width=\"432\" height=\"232\" rx=\"10\" fill=\"#ffffff\" stroke=\"#166534\" stroke-width=\"1.5\"\/><text x=\"688.0\" y=\"129.0\" font-size=\"15\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\"><\/text><text x=\"688\" y=\"30\" font-size=\"14\" fill=\"#166534\" font-weight=\"700\" text-anchor=\"middle\">Homogeneous edge<\/text><rect x=\"520\" y=\"56\" width=\"110\" height=\"34\" rx=\"6\" fill=\"#eaf5ee\" stroke=\"#166534\" stroke-width=\"1.5\"\/><text x=\"575.0\" y=\"78.0\" font-size=\"11\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">Every service<\/text><rect x=\"640\" y=\"56\" width=\"110\" height=\"34\" rx=\"6\" fill=\"#eaf5ee\" stroke=\"#166534\" stroke-width=\"1.5\"\/><text x=\"695.0\" y=\"78.0\" font-size=\"11\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">Every service<\/text><rect x=\"760\" y=\"56\" width=\"110\" height=\"34\" rx=\"6\" fill=\"#eaf5ee\" stroke=\"#166534\" stroke-width=\"1.5\"\/><text x=\"815.0\" y=\"78.0\" font-size=\"11\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">Every service<\/text><rect x=\"520\" y=\"100\" width=\"110\" height=\"34\" rx=\"6\" fill=\"#eaf5ee\" stroke=\"#166534\" stroke-width=\"1.5\"\/><text x=\"575.0\" y=\"122.0\" font-size=\"11\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">Every service<\/text><rect x=\"640\" y=\"100\" width=\"110\" height=\"34\" rx=\"6\" fill=\"#eaf5ee\" stroke=\"#166534\" stroke-width=\"1.5\"\/><text x=\"695.0\" y=\"122.0\" font-size=\"11\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">Every service<\/text><rect x=\"760\" y=\"100\" width=\"110\" height=\"34\" rx=\"6\" fill=\"#eaf5ee\" stroke=\"#166534\" stroke-width=\"1.5\"\/><text x=\"815.0\" y=\"122.0\" font-size=\"11\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">Every service<\/text><rect x=\"520\" y=\"144\" width=\"110\" height=\"34\" rx=\"6\" fill=\"#eaf5ee\" stroke=\"#166534\" stroke-width=\"1.5\"\/><text x=\"575.0\" y=\"166.0\" font-size=\"11\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">Every service<\/text><rect x=\"640\" y=\"144\" width=\"110\" height=\"34\" rx=\"6\" fill=\"#eaf5ee\" stroke=\"#166534\" stroke-width=\"1.5\"\/><text x=\"695.0\" y=\"166.0\" font-size=\"11\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">Every service<\/text><rect x=\"760\" y=\"144\" width=\"110\" height=\"34\" rx=\"6\" fill=\"#eaf5ee\" stroke=\"#166534\" stroke-width=\"1.5\"\/><text x=\"815.0\" y=\"166.0\" font-size=\"11\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">Every service<\/text><text x=\"492\" y=\"222\" font-size=\"15\" fill=\"#166534\" font-weight=\"700\">&#10003;<\/text><text x=\"514\" y=\"222\" font-size=\"12\" fill=\"#17263f\" font-weight=\"400\" text-anchor=\"start\">Single-pass inspection, any server<\/text>\n  <\/g>\n<\/svg>\n<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Current state: a homogeneous edge<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Cloudflare&#8217;s design principle fits in one line: <em>\u201cEvery server can run every service\u201d<\/em> (Cloudflare). Rather than dedicated farms (cache here, WAF there), each machine runs the whole stack. The direct consequence: traffic need not hairpin between tiers, inspection happens in a single pass, and any added capacity benefits every product at once.<\/p>\n\n\n\n<figure class=\"mkz-diagram\" style=\"margin:0 auto 14px;max-width:920px\">\n<svg viewBox=\"0 0 920 184\" width=\"100%\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" font-family=\"Arial, 'Segoe UI', Helvetica, sans-serif\" role=\"img\" aria-label=\"Anycast on ingress, unicast on egress\">\n  <defs>\n    <linearGradient id=\"g72717\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"0\">\n      <stop offset=\"0\" stop-color=\"#17263f\"\/><stop offset=\"1\" stop-color=\"#0f172a\"\/>\n    <\/linearGradient>\n  <\/defs>\n  <rect x=\"0\" y=\"0\" width=\"920\" height=\"184\" rx=\"10\" fill=\"#f8fafc\" stroke=\"#e2e8f0\"\/>\n  <path d=\"M10 0 h900 a10 10 0 0 1 10 10 v34 h-920 v-34 a10 10 0 0 1 10 -10 z\" fill=\"url(#g72717)\"\/>\n  <text x=\"18\" y=\"28\" fill=\"#ffffff\" font-size=\"17\" font-weight=\"700\">Anycast on ingress, unicast on egress<\/text>\n  <text x=\"904\" y=\"27\" fill=\"#38bdf8\" font-size=\"12\" font-weight=\"700\" letter-spacing=\"3\" text-anchor=\"end\">NET BY ME<\/text>\n  <g transform=\"translate(0,44)\">\n<rect x=\"40\" y=\"54\" width=\"150\" height=\"46\" rx=\"8\" fill=\"#ffffff\" stroke=\"#17263f\" stroke-width=\"1.5\"\/><text x=\"115.0\" y=\"82.0\" font-size=\"13\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">Users (anywhere)<\/text><rect x=\"260\" y=\"40\" width=\"200\" height=\"74\" rx=\"10\" fill=\"#eef4ff\" stroke=\"#0A66C2\" stroke-width=\"1.5\"\/><text x=\"360.0\" y=\"82.0\" font-size=\"15\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\"><\/text><text x=\"360\" y=\"62\" font-size=\"14\" fill=\"#0A66C2\" font-weight=\"700\" text-anchor=\"middle\">Anycast ingress<\/text><text x=\"360\" y=\"84\" font-size=\"11\" fill=\"#475569\" font-weight=\"400\" text-anchor=\"middle\">same IPs from every POP<\/text><text x=\"360\" y=\"102\" font-size=\"11\" fill=\"#475569\" font-weight=\"400\" text-anchor=\"middle\">BGP routes to nearest POP<\/text><line x1=\"190\" y1=\"77\" x2=\"258\" y2=\"77\" stroke=\"#0A66C2\" stroke-width=\"2\"\/><polygon points=\"258,77 249.0,73.0 249.0,81.0\" fill=\"#0A66C2\"\/><rect x=\"540\" y=\"40\" width=\"200\" height=\"74\" rx=\"10\" fill=\"#eaf5ee\" stroke=\"#166534\" stroke-width=\"1.5\"\/><text x=\"640.0\" y=\"82.0\" font-size=\"15\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\"><\/text><text x=\"640\" y=\"62\" font-size=\"14\" fill=\"#166534\" font-weight=\"700\" text-anchor=\"middle\">Unicast egress<\/text><text x=\"640\" y=\"84\" font-size=\"11\" fill=\"#475569\" font-weight=\"400\" text-anchor=\"middle\">to the Internet \/ origin<\/text><line x1=\"460\" y1=\"77\" x2=\"538\" y2=\"77\" stroke=\"#166534\" stroke-width=\"2\"\/><polygon points=\"538,77 529.0,73.0 529.0,81.0\" fill=\"#166534\"\/><rect x=\"810\" y=\"54\" width=\"90\" height=\"46\" rx=\"8\" fill=\"#ffffff\" stroke=\"#17263f\" stroke-width=\"1.5\"\/><text x=\"855.0\" y=\"82.0\" font-size=\"13\" fill=\"#17263f\" font-weight=\"600\" text-anchor=\"middle\">Origin<\/text><line x1=\"740\" y1=\"77\" x2=\"808\" y2=\"77\" stroke=\"#166534\" stroke-width=\"2\"\/><polygon points=\"808,77 799.0,73.0 799.0,81.0\" fill=\"#166534\"\/>\n  <\/g>\n<\/svg>\n<\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">On the network side, Cloudflare uses Anycast on ingress: the same IPs are announced by every datacenter, and BGP sends the user to the nearest POP. Egress is rather unicast \u2014 hence specific mechanisms for egress IPs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Trade-offs<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Uniformity vs specialization<\/strong>: a homogeneous fleet is simple to operate and grow, but forbids tuning a farm for a single task.<\/li><li><strong>Anycast<\/strong>: proximity and resilience are almost free, but you do not choose which POP answers \u2014 which complicates some cases (egress, affinity).<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Failure modes (what surprises)<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Geolocation assumptions<\/strong>: assuming a user always egresses via the same POP is risky; Anycast may route them elsewhere.<\/li><li><strong>Egress IP<\/strong>: a third party that allow-lists by source IP must handle the nature of Cloudflare egress (dedicated IP, egress policies).<\/li><li><strong>Session-affinity expectations<\/strong>: relying on a specific server is against the model; state must be designed for a distributed edge.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Proving the negative<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>From several regions, verify the same IP answers (Anycast) and measure latency.<\/li><li>Confirm that added capacity benefits every service, not one farm.<\/li><li>For a partner filtering by IP, validate the dedicated-egress strategy.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Takeaway<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The \u201cevery server runs everything\u201d homogeneity is not an engineering detail: it is what makes single-pass inspection, scaling and DDoS resilience possible. The corollary to absorb: with Anycast, you do not choose who answers.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"margin-top:28px;padding-top:14px;border-top:1px solid #e2e8f0;color:#17263f\"><em>A question or some feedback? Reach me on LinkedIn: Mokrane Assam.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What you&rsquo;ll take away : Cloudflare does not split functions across specialized farms: every server, in every datacenter, runs every service. Combined with Anycast (the same IPs announced everywhere), this yields single-pass inspection, native DDoS absorption and failure isolation \u2014 at the cost of limited control over which POP answers you. Specialized clusters vs \u201cevery<\/p><\/div>\n<div class=\"blog-btn\"><a href=\"https:\/\/mokrane-assam.com\/index.php\/2026\/06\/16\/cloudflare-anycast-every-server-en\/\" class=\"home-blog-btn\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[16],"class_list":["post-323","post","type-post","status-publish","format-standard","hentry","category-networking-security","tag-cloudflare-one"],"_links":{"self":[{"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/posts\/323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/comments?post=323"}],"version-history":[{"count":0,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/posts\/323\/revisions"}],"wp:attachment":[{"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/media?parent=323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/categories?post=323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mokrane-assam.com\/index.php\/wp-json\/wp\/v2\/tags?post=323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}