#30451: Add ASGI support to Django.
-------------------------------+-----------------------------------------
     Reporter:  Andrew Godwin  |                    Owner:  Andrew Godwin
         Type:  New feature    |                   Status:  assigned
    Component:  HTTP handling  |                  Version:  master
     Severity:  Normal         |               Resolution:
     Keywords:  asgi           |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+-----------------------------------------

Comment (by Andrew Godwin):

 Regarding ASGI not being "official": Python core has made it reasonably
 clear to me that they don't want to have a PEP for ASGI, and giving one to
 WSGI was a bad idea in the first place. Thus, adoption is down to us just
 doing it. Flask have also said they are going to attempt to support it, as
 have Twisted.

 The threads observation is an astute one, and I think worth calling out in
 the deployment documentation explicitly.

 The async_timeout dependency is only for the async test harness in
 asgiref, and thus should never be imported under normal conditions.

 The reason I have done this separately from the DEP is that it's not, in
 my eyes, strictly a new "feature" - instead, it is adding compatibility
 for a server-application protocol, and some last-resort async safety. Even
 if we didn't implement ASGI, I would still argue that we definitely need
 to make the ORM understand and protect itself from coroutine-based
 connection corruption, and that would involve importing asyncio (and
 probably asgiref for its helpful features in this area) anyway!

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30451#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/070.d7fb170a596cafc18eb79fab38c27c68%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to