~/talk

ASGI in depth

TalkinRussianat Python fwdays'20 online conference · 2020-05-16..05-23· [python, web-platform]
links:none on file
slides:none on file

Explains ASGI internals: the scope/receive/send callable signature, concrete event names like http.response.start and http.response.body with the more_body flag, and lifespan startup/shutdown events. Examines implementations—uvicorn internals and Starlette’s response (which itself implements ASGI)—showing how sync view functions use run_in_executor and asgiref helpers, how middleware wraps send/receive, and why header timing is tricky. Includes performance comparisons (uvicorn ≈100% vs hypercorn ≈91%) and practical pitfalls to watch for.

AI-written summary · about

  1. 0:00Introduction
  2. 1:07ASGI history and motivation
  3. 6:29Async Python issues
  4. 8:58Python threading and GIL
  5. 11:48Async/await libraries boom
  6. 14:19ASGI emergence and specs
  7. 17:37ASGI vs WSGI in Django/Flask
  8. 23:02Metal Gear in ASGI
  9. 26:11Uvicorn internals
  10. 33:04ASGI app structure and launch
  11. 36:15Sync/async handling in ASGI
  12. 39:10asgiref features
  13. 40:16Django ASGI support
  14. 43:59Django ASGI migration issues
  15. 45:42Summary and resources
~/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.