Hacker News new | ask | show | jobs
by Jonnax 2143 days 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?

5 comments

They support Daphne/uvicorn https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/

I think in python world uvicorn is more popular choice, might be wrong tho

I'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.
You can use Uvicorn to run ASGI apps. You can also use it together with Gunicorn https://www.uvicorn.org/#running-with-gunicorn.
Gunicorn with the Uvicorn worker class is the recommended production solution
I'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.