100K websocket user broadcast

I have an application with about 100K concurrent users needing second-by-second updates of a global state via websockets. I can't find a clear solution on Cloudflare. I do see that Durable Objects might be suitable for long-running websocket connections, but I imagine that'd only be suitable for 1,000 or so users, and Is there any automatically distributed system that allows users to connect via websockets for broadcasted events?
1 Reply
DaniFoldi
DaniFoldi6d ago
Durable Objects are indeed the way to go. You can connect each user to their own Durable Object, and build a multi-level fanout architecture. DOs can have at most 32768 hibernated connections, although from my experience I suggest a smaller number, like 500-1k (note the subrequest limit there as well) if you're planning to use it for broadcast.

Did you find this page helpful?