Fastapi와 gunicorn 도식도

Web server

역할

WSGI, ASGI

WSGI(Web Server Gateway Interface) - unvicorn

fastapi 실행 방법

python.exe -m uvicorn main:app --reload

fastapi 실행 방법 2

if __name__ == "__main__":
    uvicorn.run(app, host="0.0.0.0", port=8000)
python ./main.py

ASGI(Asynchronous Server Gateway Interface) - gunicorn


참고
[1] https://breezymind.com/start-asgi-framework/
[2] ChatCPT 4