#36281: Sync write in async code path
--------------------------------------+------------------------------------
     Reporter:  Brian Atkinson        |                    Owner:  (none)
         Type:  Cleanup/optimization  |                   Status:  new
    Component:  HTTP handling         |                  Version:  dev
     Severity:  Normal                |               Resolution:
     Keywords:  asgi async            |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Changes (by Natalia Bidart):

 * cc: Carlton Gibson (added)
 * component:  Uncategorized => HTTP handling
 * keywords:   => asgi async
 * stage:  Unreviewed => Accepted
 * type:  Uncategorized => Cleanup/optimization
 * version:  5.1 => dev

Comment:

 Thank you Brian for the report! I agree that this is worth addressing, as
 disk IO can indeed lead to stalls.

 Careful consideration will be needed for how to handle the chunked file
 writing without blocking the event loop. I'm wondering if we should have a
 sort of abstraction for the chunked file writer and allow people to
 override. Depending on the project's constraints or current dependencies,
 some projects may choose to use a 3rd party library like
 [https://github.com/alemigo/asynctempfile asynctempfile] (unclear whether
 this is currently maintained), or Django channels, or something else?

 We're open to a patch that addresses this while ensuring compatibility and
 avoiding unintended regressions. Would you like to work on this?

 (I'm torn whether to categorize this as Cleanup or New Feature, for now
 I'm going with the former but we can adjust later on.)
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36281#comment:2>
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 view this discussion visit 
https://groups.google.com/d/msgid/django-updates/01070195ed731f00-f7e24134-8230-43de-a565-bda469b03714-000000%40eu-central-1.amazonses.com.

Reply via email to