Server sent events broadcasting is slow #806
-
Hi everyone, with this library it's also possible to use it for sending SSE message, as in the example file for that. It works great, until I wanted to broadcast a message to 16.5K clients. Therefore, I saved the connections in a map object and looped over them to write each http response the message. Is there anything to do about this? The websockets pub/sub works great with thousands of clients, it's very fast, it will be nice to have something like this for HTTP as well. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
If you do
When calling from somewhere other than a callback from uWS you should see better perf. |
Beta Was this translation helpful? Give feedback.
-
I think I get what you want but this is not something we support or have reason to support. Use websockets instead, they have everything you need and is an older standard so it's even more likely to be supported |
Beta Was this translation helpful? Give feedback.
If you do
When calling from somewhere other than a callback from uWS you should see better perf.