Although Flask has a built-in web server, as we all know, it’s not suitable for production and needs to be put behind a real web server able to communicate with Flask through a WSGI protocol. … In case we need to scale up our application to multiple servers, Nginx will take care of load balancing as well.