~/talk

Just Add Await: Retrofitting Async Into Django

Talkat PyCon AU 2019 · 2019-08-02..08-06· [python, web-performance]
slides:none on file

Moves from claim to implementation: adds ASGI support landed to Django, builds heavy glue like sync_to_async shims and a thread-local / executor layer to run legacy code, and measures progress with a branch that 90% tests pass. Explains tools (event loop, Daphne, threadpool executors), surprising pitfalls (SQLite thread sensitivity, context-switch costs at thousands of threads), and shows a partly working retrofit that still needs ORM and middleware hardening.

AI-written summary · about

  1. 0:00Intro
  2. 0:40Overview
  3. 3:20Async
  4. 5:55Event Loops
  5. 8:26Threads
  6. 12:08Async vs synchronous code
  7. 14:38Dangers of asynchronous code
  8. 15:38Synchronous code
  9. 16:37Framework problems
  10. 18:10Async vs synchronous
  11. 21:35Thread Sensitivity
  12. 22:36Simplicity
  13. 24:00Django
  14. 25:20Outside in approach
  15. 25:59Phases
  16. 27:26Async Views
  17. 29:30WSGI
  18. 30:17Django and NIH
  19. 31:25Django and Whisky
  20. 33:31Whisky Handler
  21. 34:42GetResponse
  22. 36:03SGI Handler
  23. 37:02SGI Server
  24. 37:41SGI Compatibility
  25. 38:29File Uploads
  26. 40:16SGIRef
  27. 42:56SGIServer
  28. 43:34Views
  29. 47:38Middleware
  30. 51:03Sink Diffuse
  31. 52:09The RM
  32. 55:35The future
~/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.