Cloudflare workers broadcast to other sessions without durable objects?

I would quite like to try out cloudflare workers but it seems I have to pay for durable workers to be able to broadcast to any connected clients as that only seems possible via durable objects? Is this the case?

You can connect to your own origin (Via websockets) and use Cloudflare workers as a (websockets) proxy, however, if you’re going to have 10K + open connections at any time, then Cloudflare have (secret) limits and might require an enterprise account.

Keep in mind that using durable objects for websockets are very expensive, it would be orders of magnitude cheaper to use a single VM on digital ocean which can handle 1M+ open connections.

1 Like