Gagan Suie
CDCloudflare Developers
•Created by Gagan Suie on 1/25/2025 in #workers-help
DO websocket with DOSQLite
we ended up optimizing our implementation by using a UserSession DO that handles single websockets per user and combined with a ChatRoom DO that handles all the chat functionality and DOSQLite. pretty elegant solution that handles scaling well.
3 replies
CDCloudflare Developers
•Created by Gagan Suie on 1/25/2025 in #workers-help
DO websocket with DOSQLite
i guess the problem with this approach is that if we ever hit a large amount of users. they would all be stored in sessions array. which may be a lot of connections. 🙃
3 replies