Flask is a lightweight microframework for the web, and therefore, it is an ideal choice whenever we have to provide a RESTful API encapsulated in a microservice. So far, we have been working with the built-in development server provided by Werkzeug and with plain HTTP.
It is very important to understand that Flask's built-in development server is not suitable for production.
There are dozens of deployment options for Flask, and the different stacks and procedures are out of the scope of this book, which is focused on development tasks for RESTful APIs with the most popular Python frameworks. The most prominent cloud providers include instructions on how to deploy Flask applications with diverse possible configurations. In addition, there are many options to use WSGI (short for Web Server Gateway Interface) servers,...