...

/

Flask in Production with Nginx - Microservices

Flask in Production with Nginx - Microservices

A simulation of production environment for the Flask app

Getting exposure to production systems before starting on any project will definitely give you a positive feeling and confidence. This lesson is all about how the app looks like in production.

There are n number of ways an app can be deployed in production, but the idea behind is the same: using an architecture which can survive the load.

Type git log and checkout the commit 327b245bbd4392d3dee40a24457c3ed44a1ef5b9 ( Flask in Production with Nginx - Microservices) for code related to this lesson.

Production code explanation

You will see a lot of changes in this version of the code. Let’s list them one by one.

Docker level

  1. New Nginx service
  2. Read-only mounting of the file system
  3. Resources limitation

App level

  1. New wsgi server gunicorn
...