~/talk

Keynote: Async, Python, and the Future

Talkat Python Web Conf 2021 · 2021-03-22..03-26· [python, web-platform]
slides:none on file

Async in Python centers on asyncio (2014) and an event loop that await pauses coroutines cooperatively, so a single blocking synchronous call can freeze the whole process; threading hits costly context switches around ~100 threads and multiprocessing inflates memory. Frameworks like Twisted and gevent exist but require care (gevent’s monkey‑patching causes rare hard bugs). Django 3.1 supports both ASGI and WSGI paths but the ORM still needs async-safe APIs because you cannot tell if a function returns a coroutine until you call it. Use async for IO‑bound parallel queries, sockets, and notifications.

AI-written summary · about

  1. 0:00Introduction
  2. 0:40Who am I
  3. 1:35Overview
  4. 2:24Python is not alone
  5. 3:24Async history
  6. 5:06Threading and multiprocessing
  7. 7:18Twisted
  8. 9:18GEvent
  9. 10:29Generators
  10. 11:43Timeline
  11. 12:16What did we learn
  12. 12:53The present
  13. 13:49Asynchro
  14. 14:27await
  15. 15:15eventloop
  16. 16:02cooperative time slicing
  17. 16:42bad things happen
  18. 17:11cooperative problems
  19. 18:57async def
  20. 21:37synchronous vs asynchronous
  21. 23:03Django request flows
  22. 24:36The future
  23. 25:08What does the future hold
  24. 26:22More library support
  25. 27:14Safety
  26. 28:02Silent Failure
  27. 30:10Workload
  28. 31:02Horizontal scalability
  29. 31:39Web is changing
  30. 33:30Everything should be async
  31. 34:28Premature optimization
  32. 35:44The real thing
  33. 36:17Web developers
  34. 36:30Parallel queries
  35. 39:18What this means for you
  36. 40:14Django
  37. 40:51What are you building
  38. 41:55Get a feel
  39. 42:40Open source
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.