问题
While reading the docs of running Uvicorn:
Gunicorn is a mature, fully featured server and process manager.
Uvicorn includes a Gunicorn worker class allowing you to run ASGI applications, with all of Uvicorn's performance benefits, while also giving you Gunicorn's fully-featured process management.
Is doc wrong or i didn't understand correctly?
from my understanding, Gunicorn has a master slave structure to
allow Uvicon class
(async sever) to run in separate worker classes
using command:
gunicorn example:app -w 4 -k uvicorn.workers.UvicornWorker
why the doc says:
Uvicorn includes a Gunicorn worker class allowing you to run ASGI applications
Someone could explain? thanks in advance!
来源:https://stackoverflow.com/questions/63954131/uvicorn-running-with-unicorn-how