<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 2, 2013 at 11:08 AM, Christopher Lozinski <span dir="ltr"><<a href="mailto:lozinski@freerecruiting.com" target="_blank">lozinski@freerecruiting.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> I am just choosing a web server, and I thought it would be good to<br>
consult with this mailing list, since twisted web was on my short list.<br>
<br>
 I run a python moinmoin wiki, a static site, a zope 2 site, and a zope<br>
3 site on a VPS.<br>
<br>
The thing I care about most, is ease of use.  None of my websites are<br>
very high traffic.  And I have way way too much complexity in my life to<br>
manage.<br>
<br>
The next thing I care about is reliability.<br>
<br>
The thing I care least about is performance.  Would that I had that<br>
problem.<br>
<br>
So Apache is the obvious first choice.  But it is so complicated.  They<br>
threw in everything but the kitchen sink.  I just do not like it, nor do<br>
I want to spend the time wrestling with it to get it to do the needful.<br>
And you have to restart apache everytime the config files change.<br>
<br>
Nginx is the next obvious choice.  "Apache is like Microsoft Word, it<br>
has a million options but you only need six. Nginx does those six<br>
things, and it does five of them 50 times faster than Apache."<br>
<br>
Lightpd is an option, but perhaps it does not support wsgi.  Maybe<br>
lightpd2 does.<br>
<br>
Cherokee showed up on my radar, it has a nice web admin GUI, but hard to<br>
configure with moinmoin.<br>
<br>
There are 20 or 30 other web servers, all of which I am ignoring.  But<br>
one that I have looked at closely is twisted web.<br>
<br>
TwistedWeb is very interesting.  When I read the Apache documentation,<br>
my eyes glaze over.  When I read the twisted documentation, my eyes<br>
light up.<br>
What an intelligent object model of networking.  Twisted Web is also<br>
closely related to Zope.  At the very least, it is also using Zope<br>
Component Architecture, which I like.<br>
<br>
So here is my comparison of twisted web and nginx.<br>
<br>
With Twisted web, first I wonder about configuration.  Nginx is just<br>
some configuration files.  Perhaps easier then editing a python program.<br>
<br>
Then I wonder about reliability.  Nginx has a larger installed base,<br>
more bug reports presumably more reliable.   Plus it includes a process<br>
monitor that<br>
keeps things running.  I think twisted web includes monitoring software,<br>
but perhaps not as robust and mature.<br>
<br>
The next nice thing about Nginx is that you can drop configuration files<br>
and the server recognizes them, and does the right thing.  No need to<br>
reboot.<br>
The twisted web python program I would have to restart.<br>
<br>
Finally I worry about the performance.  You can see a bunch of<br>
interesting results for python servers here.<br>
<a href="http://nichol.as/benchmark-of-python-web-servers" target="_blank">http://nichol.as/benchmark-of-python-web-servers</a><br>
<br>
In general twisted web does not seem that fast, nor reliable.  High<br>
error rates.  Bummer.<br>
<br>
What is my conclusion?  Well I think Twisted web is a brilliant object<br>
model for networking software.  But dedicated software for web serving,<br>
like nginx performs way better<br>
and is much more reliable.<br>
<br>
So I think I am going to use Nginx in front of my moinmoin, zope 2, zope<br>
3 and static servers.   Is that the right decision?   Pity, I really<br>
like twisted web.<br>
<br>
Anyhow I thought I would post this here, and see what people have to<br>
say.  Presumably I made some mistakes in this document.  Please let me<br>
know what they are.<br>
<br>
_______________________________________________<br>
Twisted-web mailing list<br>
<a href="mailto:Twisted-web@twistedmatrix.com">Twisted-web@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web</a><br>
</blockquote></div><br></div><div class="gmail_extra" style>Hi </div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>   you can take a look at cyclone (<a href="http://www.cyclone.io">http://www.cyclone.io</a>) it is not bad. I use it daily.</div>
<div class="gmail_extra" style><br></div><div class="gmail_extra" style>Regards</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>gelin yan</div></div>