PHPz2017-04-18 10:32:58
A regular web service often needs to run two programs on its server (Server, here refers to the computer), one is the underlying Server (the same name as before, but here refers to a program), and the other It is the upper-layer Application.
The underlying server often needs to handle a lot of repetitive, little-changing and boring work, so generally you can see relatively mature solutions, such as uWSGI or Gunicorn as you mentioned.
As for the upper-layer Application part, different applications are very different, and there is no one-and-done solution. However, despite this, there are still some good design patterns and some easy-to-use tools. This is the python web development framework. Such as flask, django, etc., all belong to this.
As for the interaction between the underlying Server and the upper-layer Application, it follows a convention called WSGI, which will not be detailed here.