On the homepage of socket.io, it does not say anything about relating to scalability issues. Does anyone have any idea as how many concurrent connections it can process at a time? I want to deploy socket.io in my project for large scale comet processing. For instance, it states that nodejs can easily handle as many as 100K concurrent connections. Will socket.io be able to process as many request as those at a time?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- Keeping track of variable instances
There are many variables that affect performance and define limits to socket.io.
Probably the most important is your hardware, especially RAM. There is also distinction between plain concurrency and message processing. Message processing seems to be more CPU consuming than just concurrency.
I'd recommend this article, written by Mikito Takada. An extract from it:
So, to answer your question, I'd say that you cannot expect socket.io to handle same level of concurrency as what node.js can given the same setup.
For additional information regarding socket.io performance, read this by Drew Harry.