In this post I'll show you how to implement really fast polling using C and libevent, memcached and nginx. The performance of the server is over 2400 request pr. second on a not optimized Mac Book - that's 144.000 requests pr. minute. At Plurk we use polling and we have thousands of live users hammering the service with poll requests. It's beginning to be pretty expensive so I set a goal to optimize it. We currently use this approach in production and it uses around 2% of CPU and _very_ little memory.



Comments
RawThinkTank replied ago:
Developers cant care about performance , its all about the development time/speed.
You need to focus on Vala, anything happening there must be more productive due to the latest features in that language.
Voters For This Link (6)
Voters Against This Link (1)