4 ms·
> What this means, performance-wise, is that measuring requests per second gets a lot more attention than connections per second. Usually, the latter can be one
by dnekencjfkerf 8y ago
> What this means, performance-wise, is that measuring requests per second gets a lot more attention than connections per second. Usually, the latter can be one or two orders of magnitude lower than the former.
does anyone know how does 100k connections compare with other servers?
- Thaxll 8y agoIt's probably easy to do with Java / C# and Go, they're using a 36 cores machine to achieve that with fast CPU, meaning that you need 3000conn/sec per core, very doable with recent frameworks.
- ralusek 8y agoShould be possible just fine with NodeJS, so long as it's clustered to run an instance per core. The order of magnitude(s) differentiator for server performance really comes down to whether or not the architecture is blocking or non-blocking.
- holoduke 8y agoWe run about 20k connections per second with nodejs on a 12 core machine. All node is doing is parsing cached JSON, modifies it and serve it back to the client. One server has an uptime of 560days without any memory/performance issues.
- ioquatix 8y agoOn my desktop computer with a single thread, Ruby can handle about 2000/conn/s. I'm just going to check a single thread with a similar C++ implementation.
- deleted 8y ago[deleted]
- adontz 8y agoWith Python/uvloop I can easily get 10K-12K connections per second per core, so 36 cores will be fine with Python too.
- ww520 8y agoJava was able to that for the longest time. I remember seeing async io based servers doing 500K or 1M connections per machine in the last ten years. In all cases they needed to reconfigure the OS kernel since that's where the bottleneck was.
- ww520 8y agoA quick search shows that the problem has been shifted to tackle the so called C10M problem, with C1M/second. That was couple years ago. Not sure what the current state is. http://highscalability.com/blog/2013/5/13/the-secret-to-10-million-concurrent-connections-the-kernel-i.html http://highscalability.com/blog/2013/5/13/the-secret-to-10-m... https://mrotaru.wordpress.com/2015/05/20/how-migratorydata-solved-the-c10m-problem-10-million-concurrent-connections-on-a-single-commodity-server/ https://mrotaru.wordpress.com/2015/05/20/how-migratorydata-s...