Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Are there any good alternatives to gunicorn out there that don't require async? We're not ready to migrate everything to async, but gunicorn's forking model is blowing up on macOS 15.


FastAPI uses uvicorn which is ASGI, but you can choose to implement endpoints as either async or sync. I have implemented servers using both styles. Very pleasant to work with, and everything is type hinted, which is a must for me in any serious Python project.


You don't want to use uvicorn with synchronous views though or you're limited to a single request in flight.

If for some reason you need to mix sync/async views (maybe during a migration) you can use uvicorn as a gunicorn worker type, and run multiple workers. But your async views will still scale much better.


I’ve started using Granian[0] recently with good results.

[0] https://github.com/emmett-framework/granian




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: