Home  >  Q&A  >  body text

flask - uWSGI是什么?为什么python web开发经常会提到它?

uWSGI是什么?为什么python web开发经常会提到它?

阿神阿神2741 days ago530

reply all(2)I'll reply

  • PHPz

    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.

    reply
    0
  • 黄舟

    黄舟2017-04-18 10:32:58

    Because you can use it to deploy py

    reply
    0
  • Cancelreply