News for hackers. Stuff that matters.
Re:Fast polling using C, memcached, nginx and libevent by xtacy on Saturday September 25, 2010 @01:34PM (#1727392)
What is the bottleneck here? I am surprised that the CPU utilisation is just 2%, which means, either the disk or the network is the bottleneck. Both these aren't discussed. And of course, one shouldn't forget the fact that if CPU is the bottleneck, we need "true" concurrency and there should be threads on every single core. :-)
Re:Fast polling using C, memcached, nginx and libevent by amix on Saturday September 25, 2010 @06:44PM (#1728057)
Hitting a non-blocking C stack is much better than hitting a blocking Python stack - especially when you have tons of clients hammering with polling requests. So the optimization was to reduce the load on our Python servers by handling most of the polling requests in a C based server.