Thanks for the info. It's starting to become clear(er)!

I've been perplexed by the multitude of ways you can configure a server/wsgi, 
and to be honest I think I'm still struggling conceptually.

Is the following anywhere near correct?

So far as understand, the benefit of using Nginx (or similar) is that you can:

- route requests to any number of webapps in any number of languages (more of a 
software ecosystem)
- serve static files without the overhead of having the webapp process and form 
the responses and pipe the data 
- you could use a caching mechanism to speed up repeat requests

but you still need a wsgi server between nginx and the webapp.

I notice that FAPWS is more like Paste Httpserver in that it can both act as a 
wsgi server and serve static files, but that it can apparently serve static 
files very efficiently AND act as a wsgi server? The tests I've seen indicate 
it to be one of the top performers (low error rate, high requests p/second), 
which seems a great way to deliver a self-contained Pyramid app with a lot of 
power - my thinking being that it can be bundled as a package dependency, and 
so even less-experienced-users could just install the app package and be up and 
running with better performance than with Httpserver. The downside is that you 
only have your webapp running on port 80  and nothing else in this 
configuration, so you lose ability to run multiple apps etc. 
http://www.fapws.org/

uWSGI looks the most comprehensive and well-documented of the options 
available. But perhaps fawps is good for people who want a totally 
python-packaged solution and who only have the need to serve their Pyramid 
webapp and static assets?

Any guidance appreciated!

Best, S

Whereas, with Paste Httpserver you would simply be routing all requests on port 
80 so your Pyramid app. 


On 9 Dec 2011, at 15:18, Mengu wrote:

> hi simon,
> 
> i have not tried gevent yet but i have been using uWSGI & nginx in
> production since july 2011. i have written about my experience at
> http://www.mengu.net/post/deploying-turbogears-21-application-with-nginx-and-uwsgi
> it also applies to pyramid as well.
> 
> i'd be very interested in docs about gevent & nginx.
> 
> On Dec 9, 2:36 pm, Simon Yarde <[email protected]> wrote:
>> Hi All
>> 
>> Anyone have any experience using of FAPWS or Gevent and Nginx together that 
>> they would be interested in sharing?
>> 
>> I understand uWSGI, Gevent, and FAPWS are highly capable, with FAPWS 
>> focussed in simplicity/speed and needing to be extended to add SSL support 
>> (which I'm interested in). The docs are either minimal or coming in at a 
>> reasonably high-level, and it would be good to hear any 'gotchas' or 
>> configuration concerns.
>> 
>> I've been writing thorough Sphinx docs that cover steps and new skills I've 
>> had to acquire as I've progressed with Pyramid over the last few months 
>> (coming from Django, and before that Drupal, Wordpress etc). My work are 
>> very open-source friendly and I suspect it will be the least we can do that 
>> we share this journey back to the community (if it's interested!), and 
>> naturally I'll be writing about experiences with the major WSGI servers as I 
>> trial them.
>> 
>> I used this article as a reference to round-up the available 
>> options:http://nichol.as/benchmark-of-python-web-servers
>> 
>> All the best, Simon
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "pylons-discuss" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/pylons-discuss?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to