django - What is the purpose of NGINX and Gunicorn running in parallel? -


Deploying a lot of Django apps for the use of Amazon 2, the HTTP server NGINX and the Gnichorn

I Wondering what they really did and why both are used in parallel, what is the purpose of running them in parallel?

They have not been used in parallel. NGINX is a . It is in the first line, it accepts incoming connections and decides that they should go to the next location. It (generally) works like static media such as CSS, JS and images. It can do other things like encryption SSL, caching etc.

Gunyornorn is the next layer and one is . NGINX sees that the incoming connection is for www.domain.com and they (through configuration files) know that it should pass that connection to Gunicorn Gunicorn is a server which basically

Simple and universal interface between web servers and web applications or frameworks

Gunicorn's job is to manage and run < P> Contrary to this setup, Apache is used with the mod_wsgi module To do In this situation, Aperture Server is actually part of Apache, running as a module.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -