On Oct 27, 3:58 pm, Mike Orr <[email protected]> wrote:

> I use Paster with ProxyPass, and run it under Supervisor rather than
> using a startup script.

that too!  i need to learn how to do that. i had a hellish experience
trying to get monit to work correctly for this; supervisor is likely
to be more portable and simpler.


> He was asking about using Paster alone without a webserver.  Yes, you
> can do this.  There are three reasons most people use Apache or Nginx:

my interpretation was that he didn't want to config apache or similar
to handle the application, and serve from paster -- which is what i
suggested.

perhaps i should have been more clear and said this:

   You can serve from paster alone, but it may not be a good idea to
do that.
   Paster can definitely handle the traffic for all of your dynamic
content on most sites quite easily; but each dynamic page usually has
a significant amount of static content - serving that static content
off Paster will slow everything down. You'll also run into issue with
'slow clients' or 'dropped connections' that tie up processes/threads/
etc -- which is really universal to all web applications no matter the
framework or language.  For that reason many people like to run some
sort of webserver on Port 80 in front of their dynamic server(s) ;
this server is usually responsible for serving static content and
proxying the request for dynamic content to a Paster / Apache / FCGI /
etc  server operating on a different port or even a different
machine.  The benefits of this setup are that the dynamic server
receives a completed request and can quickly process it and return it
to the proxy server on port 80, freeing up memory/cpu resources
quickly.  The proxy essentially only serves static content, and is
usually highly optimized code that can handle thousands of
simultaneous connections ( ie: nginx, lighttpd, etc ).

--~--~---------~--~----~------------~-------~--~----~
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