Skip to main content

Gunicorn vs NGINX Explained

Web applications typically disseminate information via three server layers:

  1. Web server  - First layer: Receives request from client(web browser)
  2. Application server - 2nd layer: Receives requests from web server if the client is requesting dynamic content
  3. Database - 3rd layer: Receives database queries from web framework's request handler methods
In this example , nginx is the web server, gunicorn is the application server(interface between nginx and web framwork request handling function) and the database can be assumed to be a lightweight sqlite3 database.

Example: Django architecture


Alternatives to nginx:

  • Cherokee
  • Apache HTTP server



Alternatives for gunicorn:

  • Apache
  • Mongoose

Comments

Popular posts from this blog

PIP vs CONDA

Both are ' package managers' that can be used to install python packages such as numpy, matplotlib, seaborn etc. Although conda is more of an environmental manager  than it is a package manger. A package manager is simply a software tool used to automate the process of installing , updating  and removal of software packages(libraries). Conda PIP Can install non-python libraries Can only install python libraries Cross platform package manager Python package manager Install python packages in conda-environment Install python packages in any environment Leave any other disparities in the comments section below,so they can be added to the list.

Where to get data-sets to practice data science?

Data is the new science. Big data holds the answers. - Pat Gelsinger, CEO 1. Programmable Web  Description:   This is a site where you can obtain API's to extract data from some of the biggest sites on the internet. Link address:   API Directory Examples : Google maps API, Instagram API, Twitter API etc. 2. Postman API Development Description:   An online tool that you can use to access millions of APIs on the internet. You can also develop your own API if you happen to own a site. Link address:   API TOOL  Examples : Paypal API, Adobe API, Coursera API etc. 3. Facebook graph Description:   An online tool that you can use to access data about Facebook pages. Link address:   API  Examples : graph.facebook.com/youtube  - Access page data, e.g likes, number of posts etc. 4. APIGEE Description:   An online GUI tool that lets your extract and send data to various web platforms Link ad...