force Colo execution
Trying to help someone for an uptime SaaS.
https://news.ycombinator.com/item?id=38066874
How can I force an cloudflare worker to execute within multiple Colo's?
8 Replies
There is nothing that Cloudflare offers that would let you do that - you would have to just request the Worker from different regions.
At which point, you already have the ability to make requests from those regions anyways.
I bet you could make something work with DOs with region hints, but it's not going to be per-colo precise.
Solved it after more searching. Thanks for the faster than light feedback.
Very curious how you solved it, if you can share with us
The details can be found here:
https://community.cloudflare.com/t/how-to-force-region-in-cloudflare-workers/557016/3
Cloudflare Community
How to force region in Cloudflare Workers
No, it still worked. Cloudflare are aware of this for several years and haven’t done anything to prevent it so I don’t think its something they want to stop. It’s possible by nature of their architecture, and could easily be stopped but they haven’t so I think its allowed, though I’m not sure. It’s not something we use in production but I have ...
I would note too that while this may work now, I wouldn't recommend building a solution that needs to work on top of this, as it might break at any time
Ok, thanks.
Well, I've seen how cloudflare works. And it's still a solution to a problem.
While this may work now, when it disappears, I would believe there would be a solution to a similar problem, but in a more "Cloudflare" supported approach, eg. By running them in different regions with DC with overcapacity. Instead of forcing the Colo.
I think upping the price per mill. Requests when forcing a region is even understandable. Since it doesn't really makes use of cloudflare s underlying/optimized sdn.
Just a thought