-
Trying my hands on uwebsockets.js first time. Super fine experience but stuck badly now. We have 1000 clients connected to nodejs uws. And we have to send same data (~350KB) to all clients as they subscribed by default on How do we handle this as we do not see any method to interfere after Some Code Snippet is highly appreciated. Also, things are pretty smooth when we run on local machine, but on ec2 server Backpressure issue becomes 100 times more |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 15 replies
-
Adjust your settings: maxBackpressure, closeOnBackpressureLimit And minimize your data size. How often are you publishing 350kb to 1000 clients? Are you sure that is the smallest possible size? What kind of data/format is taking up 350kb on every publish? |
Beta Was this translation helpful? Give feedback.
-
Though I am reading a lot about maxBackpressure, can not get full hold of it.
|
Beta Was this translation helpful? Give feedback.
-
Should also mention to answer original question, if you want to handle each websocket connection individually depending on backpressure level, loop through each websocket and check |
Beta Was this translation helpful? Give feedback.
Adjust your settings: maxBackpressure, closeOnBackpressureLimit
And minimize your data size. How often are you publishing 350kb to 1000 clients? Are you sure that is the smallest possible size? What kind of data/format is taking up 350kb on every publish?