Welcome! Log In Create A New Profile

Advanced

RE: Nginx and uwsgi

All files from this thread

File Name File Size   Posted by Date  
1.9 KB open | download Biswas, Pinakee 06/11/2012 Read message
168 bytes open | download Biswas, Pinakee 06/11/2012 Read message
June 11, 2012 02:16PM
> Hi Roberto,
>
> Thanks for the prompt response. That really helps.
>
> Our major consideration for going with Nginx is performance.
> If we have another process running (a wsgi server with python application)
> and nginx working as a proxy translating HTTP requests to another protocol
> (uwsgi, http or fastcgi), won't that be an overhead?


Yes, there is an overhead, but it is practically irrelevant in the big
scheme. Your bootleneck will hardly be the webserver or the application
server. Running custom/non-deterministic apps directly in the webserver is
a really old-style approach and afaik, only the php world still pushes
this kind of setups.

Take in account (as you came from apache), mod_wsgi preferred setup is in
daemon mode, that is a beatiful abstraction of a proxied setup.


> I was under the impression that the Python application can be embedded in
> Nginx using Wsgi.


the only third-party-module allowing you to do so, is Manlio Perillo's
mod_wsgi/mod_python for nginx. It is unmaintained, and its preferred usage
is in having another nginx in front of it proxying requests. Nginx is a
non-blocking server, putting blocking code in it (as 90% of the webapps
are), is the key to hell :)

If you have got experience with apache+mod_wsgi, you can simply use nginx
for serving static files and using apache+mod_wsgi (in embedded mode) as
your application server for python/wsgi. This is now a very common setup.

--
Roberto De Ioris
http://unbit.it

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

Nginx and uwsgi Attachments

Biswas, Pinakee June 11, 2012 09:36AM

Re: Nginx and uwsgi

roberto June 11, 2012 09:50AM

RE: Nginx and uwsgi

Biswas, Pinakee June 11, 2012 10:02AM

RE: Nginx and uwsgi

roberto June 11, 2012 02:16PM

Re: Nginx and uwsgi

Manlio Perillo June 12, 2012 09:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 107
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