来源:https://stackoverflow.com/questions/76226696/fastapi-uvicorn-multithreading-how-to-make-web-app-to-work-with-many-reques
uvicorn "main:app" --workers 4
注意⚠️:当有 --reload
参数的时候,--workers
不生效
来源:https://stackoverflow.com/questions/76226696/fastapi-uvicorn-multithreading-how-to-make-web-app-to-work-with-many-reques
uvicorn "main:app" --workers 4
注意⚠️:当有 --reload
参数的时候,--workers
不生效