Using Uvicorn under Windows


looking for a solution to make my FastAPI run under Windows I thought of using uvicorn.
The deployment doc says:

Run uvicorn --reload from the command line for local development.
Run gunicorn -k uvicorn.workers.UvicornWorker for production.

but on Windows there is no Gunicorn, AFAIK.
Is it safe to use uvicorn also for (small scale) production? There will be not much traffic (100req / day).

Absolutely yup, it’ll be more than capable enough.

Gunicorn has some more mature options for eg. how processes are restarted, and for monitoring processes which go down, but you don’t necessarily need those.

1 Like