~/talk

Sync or async? Feel the magic of coroutines and the event loop in Django

Talkat PyCon Greece 2025 · 2025-08-29..08-30· at 16:15· Innovathens Stage· [python, concurrency]
slides:none on file

Explains how Django apps use asyncio and ASGI to yield during I/O, showing a concrete demo: a NanoDjango app served with Gunicorn handles ~15 concurrent requests, switching only the server to Uvicorn raises throughput to ~250 without code changes. Covers async def/await keywords, event loop behavior, cost of sync/async context switches, partial async ORM and middleware caveats, and recommends converting IO-heavy views first to gain concurrency and better CPU utilization.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:17Concurrency vs parallelism explained
  3. 9:25Coroutines and event loop basics
  4. 14:56Python asyncio and async/await
  5. 17:50Async in Django framework
  6. 22:40Live demo and performance comparison
  7. 25:14Q&A and closing remarks
~/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.