3 ms·
Workers run in every datacenter, but there are a variety of reasons your request might be rerouted to one that's not the closest one physically, such as: * The
by kentonv 4y ago
Workers run in every datacenter, but there are a variety of reasons your request might be rerouted to one that's not the closest one physically, such as:
* The closest one may already be at capacity, requiring rerouting some traffic away.
* ISPs in some parts of the world are weirdly fragmented, not interconnecting with other ISPs in the same region. As a result, if you're on the "wrong ISP", the network distance to the local colo may be longer than to some other colo that is physically further away.
* To serve content from servers in China, you must have an ICP license from the Chinese government. If you don't have that, Cloudflare will send Chinese traffic to the closest non-Chinese colo.
* Probably other reasons I'm not thinking of off the top of my head.
Note that all these apply to Cloudflare in general regardless of whether you use Workers. Enabling Workers has no effect on what datacenter you get routed to. Cloudflare's infrastructure team is always working to improve these situations, e.g. adding more servers, negotiating more connectivity, etc.
A nice thing about building on Workers is you don't have to worry about any of this. E.g. you don't need to think about redirecting your traffic when a colo is over capacity... it happens automatically.
(I'm the tech lead for Workers.)
- re-thc 4y agoThanks for the reply. I'm referring to e.g. https://community.cloudflare.com/t/does-free-plan-cloudflare-work-in-australia/236794/8 https://community.cloudflare.com/t/does-free-plan-cloudflare... where the poster says: "For predominantly Australian traffic, you’d probably need CF Business or Enterprise plan. For India traffic, would need CF Enterprise plan." Where do workers run in this instance and what impacts are there say if I'm not on a business or enterprise plan? Point being if we do need an enterprise or business plan for these features it's not 100% free.
- kentonv 4y agoSorry, I'm not on the network team and I don't know whether that specific forum comment is accurate. All I can say is that if you use Workers, the Worker always runs in the datacenter that receives your request, which is exactly the same datacenter that would have received your request if you weren't using Workers.