jsmpeg icon indicating copy to clipboard operation
jsmpeg copied to clipboard

websocket-relay.js / node performance issues (Single thread bound)

Open lboogs99 opened this issue 6 years ago • 2 comments

Hello all,

Recently ran into an issue with what appears to be Node JS's single thread boundness. Basically if we run 10 copies of node on a single machine running websocket-relay.js everything is cool until we add stream 11. I have narrowed this down to an issue with node JS and the fact it is bound to a single thread.

Any using alternate web socket servers? Any performance suggestions or ideas as to how to over come this limit?

Thanks

lboogs99 avatar Nov 28 '18 13:11 lboogs99

https://itnext.io/multi-threading-and-multi-process-in-node-js-ffa5bb5cde98

Does this help clear that up?

revofire avatar Nov 28 '18 14:11 revofire

Hi, you can try websocket server written in golang as I did: https://github.com/cs8425/jsmpeg/tree/master/go-wsrelay

cs8425 avatar Apr 04 '19 04:04 cs8425