ASGI from scratch – Let's build an ASGI web framework
shenli.dev
shenli.dev
I think if we have a more performant ASGI server / event loop, the results might be different.
I like ASGI because it allows us to do some things (including websocket, asynchronous io, etc) much easier. And even it is not compatible with WSGI, it's not hard to wrap around a WSGI application.
The framework built in the post is far from finished or practical, please take a look at Starlette, FastAPI or even Django, etc to know more about the use cases of ASGI.
(not affiliated, just a happy user)
Currently, the ASGI ecosystem isn't nearly as mature as the WSGI ecosystem, and for a production system, I would still prefer WSGI for now. Django just got ASGI support in 3.0, but it still has a long way to go to become fully asynchronous [2]. I think Starlette [3] will become a popular ASGI framework, but it's still early in it's development.
[1] https://www.techempower.com/benchmarks/#section=data-r19&hw=...
[2] https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/