Welcome! Log In Create A New Profile

Advanced

Re: WSGI Module

Jurie-Jan Botha
September 01, 2010 01:02PM
> It is quite simple.
> For each request whose location is handled by the wsgi module, an user
> defined Python function is called.
>
> When the Python function is called, an entire process is blocked until
> the function return; Nginx process will be not be able to serve other
> requests.

I see. I also read that Apache's mod_wsgi has a mode where it
dedicates
processes to running the python requests. So if you include this
option then
that won't be a problem any more.

> The suggested usage is to *always* (unless you know what you are doing)
> place a "normal" Nginx instance as frontend, and put the Nginx instance
> with the WSGI module as a backend, using the http proxy module.
>
> The only thing similar is the Perl module, that allows you to execute
> Perl code inside Nginx.
> But the intended usage it to execute small scripts; the intended usage
> of the WSGI module is, instead, to execute WSGI applications.

I'll keep on running my Nginx and FCGI combination then. The idea
of hooking up Nginx straight to a python file with an WSGI app inside
was very alluring to me, but I'll just have to wait. I don't really
want
to switch to Apache.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

WSGI Module

Jurie-Jan Botha August 17, 2010 02:48AM

Re: WSGI Module

vesperto August 17, 2010 05:22AM

Re: WSGI Module

Jurie-Jan Botha August 17, 2010 11:02AM

Re: WSGI Module

Manlio Perillo August 24, 2010 05:02PM

Re: WSGI Module

Jurie-Jan Botha August 26, 2010 05:58AM

Re: WSGI Module

Manlio Perillo August 26, 2010 03:46PM

Re: WSGI Module

Jurie-Jan Botha September 01, 2010 01:02PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 304
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready