~/talk

Just Add Await: Retrofitting Async Into Django

Talkat DjangoCon US 2019 · 2019-09-22..09-27· [python, web-performance]
slides:none on file

The project retrofits async by adding ASGI support in Django 3, a compatibility layer that uses sync_to_async/async_to_sync shims and a thread-sensitive mode to keep thread-local and SQLite behavior safe; phase two makes handlers, middleware and views async (branch passes all but two tests) and full ORM async is planned later. Claim: properly used async views can yield 5–10x efficiency on IO-bound workloads. Middleware and class-based views remain the hardest compatibility problems.

AI-written summary · about

  1. 0:00Introduction
  2. 1:52Sinking Brief
  3. 5:15Why not just use threads
  4. 8:41Django is a big framework
  5. 10:05Django is built on thirdparty libraries
  6. 12:45Django doesnt have an async equivalent
  7. 13:50Threads do matter
  8. 15:17We have to play up
  9. 16:09Django Internals
  10. 18:02Phase 1 SGI
  11. 20:04Djangopredates WSGI
  12. 24:36Uploading files
  13. 25:38ASCIIRare
  14. 27:46Phased Approach
  15. 32:59Classbased views
  16. 34:03The goal
  17. 34:29Error Ram
  18. 34:39API Design
  19. 35:05Select Related
  20. 35:24Phase Approach
  21. 35:46DjangoORM Safety
  22. 35:59DjangoORM Error
  23. 36:11Need Help
  24. 36:44Some Things Dont Need Async
  25. 37:19Async Views
  26. 37:55Performance
  27. 38:32Burnout
  28. 39:36Funding
  29. 40:21Django Forum
  30. 41:24Why Async
  31. 43:43Links
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.