- Gunicorn

Using Gunicorn to provide a WSGI server for applications.

We'll cover the following

Using Gunicorn

We can use to provide a WSGI server for our echo Flask application. Using Gunicorn helps separate the functionality of an application, which we implemented in Flask with the deployment of an application. Gunicorn is a lightweight WSGI implementation that works well with Flask apps.

It’s straightforward to switch from using Flask directly to using Gunicorn to run the web service. The new command for running the application is shown below. Note that we are passing in a bind parameter to enable remote connections to the service.

Get hands-on with 1200+ tech skills courses.