Just a quick blurb for libevent users: you may want to check out libev.<br><br>From <a href="http://software.schmorp.de/pkg/libev.html">http://software.schmorp.de/pkg/libev.html</a>:<br>&nbsp; &quot;A full-featured and high-performance (<a href="http://libev.schmorp.de/bench.html">see benchmark</a>) event loop that
 is loosely modelled after libevent, but without its limitations and bugs. It is
 used, among others, in the <a href="http://savannah.gnu.org/projects/gvpe">GNU Virtual Private Ethernet</a> and
 <a href="http://software.schmorp.de/pkg/rxvt-unicode.html">rxvt-unicode</a> packages, and in
 the Deliantra MORPG Server and Client.&quot;<br><br><div class="gmail_quote">On Feb 10, 2008 1:39 PM, Hendrik Hardeman &lt;<a href="mailto:hendrik.hardeman@hotmail.com">hendrik.hardeman@hotmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div>
Manlio,<br><br>&gt; Interesting, but I prefer to use Python embedded in Nginx, since it is <br>&gt; more robust.<br>&gt; In future I hope to be able to add support for asynchronous Python <br>&gt; applications.<br>&gt; <br>
<br>I agree that embedded Python would be more robust, but then I would probably still use standard Nginx in front with perhaps one or more bare-bones Nginx servers upstream with embedded Python listening on particular ports. With embedded Python I don&#39;t see a need for some of the standard modules, e.g. the rewriting module. That&#39;s something the Nginx server in front could take care of. I&#39;d rather see something like Libevent (i.e. an asynchronous HTTP server engine) with embedded Python. The core of Nginx is probably similar to Libevent with its HTTP layer. Would be interesting to find out how Nginx core compares to Libevent with HTTP layer in terms of performance.<br>
<br>A core Nginx engine with embedded Python would definitely interest me ! That&#39;s for sure more robust than Python on top of Libevent. Already binding Python to the latest version of Libevent was quite tricky. Both existing Python modules for libevent (pyevent / libevent-python) are outdated and I had to use the ctypes library to bind to Libevent. Wouldn&#39;t mind replacing Python-&gt;ctypes-&gt;libevent by an Nginx core with embedded Python.<br>
<br>&gt; <br>&gt; I think that it would be interesting to have some benchmarks of mod_wsgi <br>&gt; against libevent based Python servers.<br>&gt; <br>&gt; <br><br>I believe it would be difficult to compare a more general purpose mod_wsgi with a purpose-written Python server based on libevent. I myself have no experience with wsgi and am not in a position to compare, but you can try.<br>
<br>&gt; <br>&gt; The problem is that this is a very specialized need, so you should <br>&gt; implement it by yourself, of rent a coder that can work on the nginx <br>&gt; codebase for you.<br>&gt; <br><br>Will probably implement it myself, unless there&#39;s someone else out there who would be interested to give it a try. For the time being I have myself no time whatsoever, at least not in the next two months.<br>
<font color="#888888"><br>Hendrik<br></font><div class="WgoR0d"><br><hr>Live the life in style with MSN Lifestyle. Check out! <a href="http://content.msn.co.in/Lifestyle/Default" target="_blank">Try it now!</a></div></div>
<div class="WgoR0d">
</div></blockquote></div><br><br clear="all"><br>-- <br>Adam<br><a href="mailto:zellster@gmail.com">zellster@gmail.com</a><br>