Socket.io: How many concurrent connections can WebSockets handle?

后端 未结 2 640
栀梦
栀梦 2020-12-13 06:02

I am wondering if you have any data on concurrent connections to websockets? I am using Socket.io on Node.js server. How many clients can connect to socket and receive data

2条回答
  •  我在风中等你
    2020-12-13 06:39

    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.

提交回复
热议问题