#Broadcast Request

4 messages · Page 1 of 1 (latest)

versed shard
#

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

lilac cairn
#

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