FastAPI is an ASGI application, so production deployment uses an ASGI server — typically Uvicorn (often managed by Gunicorn for multiple workers), behind a reverse proxy like nginx. Containerization (Docker) is the common modern approach.
The production server stack
uvicorn main:app --reload
gunicorn main:app -w 4 -k uvicorn.workers.UvicornWorker -- 0.0.0.0:8000
