~/talk

Taking Channels Async

Talkat DjangoCon Europe 2018 · 2018-05-23..05-25· [python, web-platform]
slides:none on file

Channels 2.0 is a ~75% rewrite that makes Channels fully async using Python asyncio, replacing worker processes with a single-process server (Daphne) plus a Redis channel layer and letting sync code run in threads so the ORM stays unchanged. Two tricky compatibility helpers (async_to_sync and sync_to_async) took months to get right and let synchronous views call async channel APIs and vice versa. The result: mixed sync/async apps deploy simpler, ASGI becomes the new external interface, and real-time features work without separate worker processes.

AI-written summary · about

  1. 0:00Intro
  2. 0:56Who am I
  3. 1:12History of Channels
  4. 1:54Design Issues
  5. 2:28Channels 1 Architecture
  6. 4:00Channels 2 Code Base
  7. 4:45Rewrite Results
  8. 5:04Python Async Support
  9. 7:53Why Async
  10. 8:36Python Async
  11. 9:12Template Async
  12. 9:43Async to Sync
  13. 10:44Future Async
  14. 11:34Sync Native APIs
  15. 12:13Cross Compatibility
  16. 13:03Python Design for Async
  17. 14:04Blog Post
  18. 14:21WSGI
  19. 15:12Synchronous
  20. 15:45WSGI Async
  21. 19:59External Channels
  22. 20:20Making Django Async
  23. 22:41Replacing WSGI with SGI
  24. 24:41Multiple servers and frameworks
  25. 25:52Asynchronous code
  26. 27:23What is Channels
~/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.