This is a description of the new features that can be found in libevent 2.x. One of the main reasons for using it would be the inclusion of sendfile() operations (where the OS does all the work when sending large files from disk), and big performance improvements, specially in the HTTP code:
Preliminary results around April [...]
Archive for the 'Networking' Category
libevent 2.0
17Mar10Filesystems for CDNs
14Mar10XtreemFS. It seems to have all the neccessary things for developing you own CDN at the OS level with minimum effort. Similar to Coda, but it gives you on-demand file replication (read-only, of course) on WAN environments, POSIX semantics (so you don’t need to modify you application) , stripping and parallel I/O (equals to high [...]
gevent performance
17Feb10I´m using gevent for implementing a basic HTTP stresser and I must say I´m impressed with the performance I can get with this framework. My program launches thousands of HTTP requests (with urllib2) to my server, asking for very long files (>200MBytes), and I´m getting up to 2 Gbit/sec with almost no CPU usage in [...]
More on Python for networking: a performance comparison of different asynchronous frameworks, including Twisted and Tornado. It focuses on raw performance (it is just an HTTP echo server implemented in each platform, and tested with httpperf), so it ignores the features provided…
However, it has brought to my attention two frameworks based on libevent: Gevent and Concurrence. [...]
DNS server in Twisted
09Feb10Yesterday I found this code snippet on a DNS server made with Twisted. It just forwards the DNS queries to Google’s servers, with some optional filtering or transformation in the middle. It has been really shocking to see how easy is to make your own DNS server in Python…
Ok, ok, maybe it is not as fast [...]


