05/25/2023, 2:07 PM
The reason I wanted to use websockets is because I wanted to prototype real-time notifications to users using Cloudflare Queues; imagine something like GitHub's notifications, which might be easier to understand. The architecture I had in mind was to send queues from an external server, distribute them to the necessary users at the front end of the DO, and send them to an already established websocket connection with the browser. However, with a batch interval of a few seconds for Queues, it would not be any more real-time than that, and it may not be practical to manage all user notifications with a single Queue.