~/talk

Is Django async yet?

Talkat PyCon Italia 2024 · 2024-05-22..05-25· [python, web-platform]
speakerdeck:xrmx
slides:none on file

Django reaches version 5.0 but full async backends remain unfinished: an attempt to convert the REST tutorial shows Django 5.0 supports async views but Django REST Framework lacks async viewsets, renderers, related-field handling and default permissions, forcing many hand-rolled views and broken tests. The conversion relies on bridge helpers (asgiref sync_to_async/async_to_sync), async Postgres drivers like psycopg3, and runs under Gunicorn+Uvicorn; OpenTelemetry auto-instrumentation reveals frequent sync↔async crossings and the conclusion is: promising but not yet production-ready.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 2:40Async support in Django ecosystem
  3. 4:24Demo setup and challenges
  4. 9:04Limitations of async Django
  5. 10:51OpenTelemetry instrumentation demo
  6. 14:44Conclusion and future steps
  7. 16:33Q&A session
~/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.