Broadcast Request
If I have three endpoints, can I implement request broadcasting to all endpoints via load balance? Or is there another product that can do this? Ideally the fastest response is returned and then broadcast to the other endpoints
2 Replies
Cloudflare's Load balancer can do a lot of things, replaying the request across all pools isn't one of them
Only Workers or Snippets could do something like that afaik, you could just fetch() all 3 endpoints then Promise.any, ctx.waitUntil the rest and return, should work fine as long as the rest would answer within 30s (waitUntil limitation) and you wouldn't have more then 6
workers are limited to 6 concurrent outgoing fetch requests per incoming requests, so any more then that would need to be queued
All right, sir. Thank you very much.