Eupheminis
Eupheminis
CDCloudflare Developers
Created by Eupheminis on 10/3/2023 in #workers-help
How to Build a Massive Chat Room with Cloudflare?
Hello, recently I've been trying to create a chat system, in the style of Twitch or YouTube, and I've found myself wondering what will happen when I reach the limit of a Durable Object? Is there any way to scale a chat room using multiple DOs? That's when I started investigating the solutions provided by Cloudflare in case I need this. It turns out that besides discovering some new limits that weren't in the documentation, such as the fact that a DO cannot handle more than approximately 32,000 WebSocket connections. I also couldn't find a solution to my hypothetical problem, apart from Queues, which I'm not sure if it's a good fit for this scenario. So my question is: Is there a way to link multiple DOs together and combine them to create a HUGE chat room? Or should I take care of something like this on my own due to the current limitations? Thank you very much in advance.
4 replies