Re:Millions of Active WebSockets with Node.js
by miyuru on Tuesday February 21, 2023 @04:14AM
(#34878707)
That means this benchmark is useless right?
In real world there will be more client IPs and the host will be listening on 1 IPv4 on 1 port.
Re:Millions of Active WebSockets with Node.js
by Ndymium on Tuesday February 21, 2023 @05:57AM
(#34879510)
That would depend on if it matters to the WebSocket server if connections are from one or multiple IPs. In this case I would not think that there's any difference as far as the WS library is concerned. Maybe it has some effect on the OS kernel's networking routines, but I would not expect it to be big.
There's two ways to get more connections: use more client IPs or use more host IPs. In this post the OP has decided to add more host IPs.