Is it possible to restrict the
Is it possible to restrict the geolocations that a worker can be placed in?
4 Replies
I am running into an issue where users from some geos (india, vietnam etc) are being routed through Hong Kong data centers and thus being blocked in the subrequests (who also use cloudflare- which means I dont have a way to obscure the request location).
Not without Enterprise DLS.
You could leverage Durable Objects to do the fetch, hinted to specific regions (avoid APAC), but latency and cost would be potential concerns
Hm best bet is probably to have a separate proxy then I guess.
What a shame
Workers have Smart Placement but it won't work for this case because there is always some % of requests used as a baseline which aren't placed smartly, and also it's purely off latency and not errors afaik, so might end up getting more errors due to fast blocking responses. In case you run across that