3 ms·
Cool, they've implemented async views. ASGI has kinda passed me by. For some small project's I use Gunicorn. What's the setup for ASGI that's popular?
by Jonnax 6y ago
Cool, they've implemented async views.
ASGI has kinda passed me by.
For some small project's I use Gunicorn.
What's the setup for ASGI that's popular?
- iaml 6y agoThey support Daphne/uvicorn https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ I think in python world uvicorn is more popular choice, might be wrong tho
- neillyons 6y agoYou can use Uvicorn to run ASGI apps. You can also use it together with Gunicorn https://www.uvicorn.org/#running-with-gunicorn https://www.uvicorn.org/#running-with-gunicorn.
- laactech 6y agoI've been running uvicorn with gunicorn in production, and it's been solid. Django 3.0 enabled this with ASGI support. It'll still be a while before django is fully async capable, but these are steps in the right direction.
- simonw 6y agoI've been using Uvicorn for a couple of years on a whole bunch of projects and it's not caused me any trouble at all.
- VWWHFSfQ 6y agoGunicorn with the Uvicorn worker class is the recommended production solution