~/talk

Asynchronous Django: Unlocking the Power of Async Programming

TalkinSpanishat PyCon US 2025 · 2025-05-16..05-18· [web-platform, python]
links:none on file
slides:none on file

Django now supports asyncio via ASGI and the talk demonstrates concrete async code: async def views, replacing requests with httpx, and using a-prefixed ORM methods such as aget/afirst. A demo queries weather for multiple cities and shows the async endpoint roughly halves latency (≈800 ms sync vs ~400 ms async) under the demo conditions, while also noting limitations—transactions and much of the ORM remain synchronous and often need sync_to_async and extra threads, so async is not a drop-in speedup.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04Synchronous problems
  3. 3:36Async solutions
  4. 6:04ASGI intro
  5. 8:55Async history
  6. 10:16ASGI implementation
  7. 13:08ORM async limits
  8. 17:24Async transactions
  9. 18:27Async views demo
  10. 23:54Resources & summary
  11. 24:39Q&A
~/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.