How many concurrent connections can WebSockets handle?


I am wondering if you have any data on concurrent connections to websockets? I am using on Node.js server. How many clients can connect to socket and receive data without bringing my server down? 1000? 1000.0000?


4/17/2011 5:28:25 PM

Accepted Answer

This highly depends on your hardware configuration, what exactly are you doing/processing on the server side and if your system is optimized for many concurrent connections. For example on Linux machine by default you would probably first hit maximum number of opened files or other limits (which can be increased) before running into hardware resources exhaustion or similar scalability issues. Key resource may be the amount of RAM which can be allocated by your node.js program to keep concurrent connections opened and ability to receive new ones.

5/23/2017 12:25:13 PM

Check this blog. We use the same principle. Previously our nodejs server will crash after 100 concurrent connections due to hardware constraints. But after we move to Amazon EC2 it is now highly scalable.

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow