High performance Network IO with Python + Libevent (#139)

Michael M Carter (Orbited) bio
30min Intermediate
categories: concurrency, distributed, fast web presence, network, performance, tutorial, twisted, web

Python comes with a full suite of network apis that are robust, complete, and easy to develop with. For high concurrency demands there is asyncore and Twisted. But even with these alternatives to synchronous network IO, many applications require higher performance. Additionally, some developers have trouble learning Twisted's substantial api. This talk presents the technique of integrating python and libevent, a c-based high performance network IO library, to develop fast and highly-concurrent network services. In particular, this talk focuses on the pyevent library, explaining basic usage of the library and providing step-by-step analysis of example code as well as benchmarks.


Files:




# Permalink