Uvicorn running with Unicorn, how?

て烟熏妆下的殇ゞ 提交于 2021-01-29 09:01:44

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!