~/talk

Leveraging Async and Await in Modern Python

Talkat Developer Growth Summit 2022 · 2022-04-06..04-07· [python, concurrency]
slides:none on file

Demos show concrete gains: an async producer/consumer using asyncio.Queue cuts end-to-end latency by processing items as soon as network waits happen; a web scraper that fires 20 concurrent httpx requests for episodes 330–350 runs far faster than the synchronous loop once tasks are created and awaited; recommendation to use uvloop on Unix and to chunk massive request sets to avoid OOM. Code runs on Python 3.10 and the examples execute successfully.

AI-written summary · about

  1. 0:00Start
  2. 1:38Introduction
  3. 2:16What is asynchronous programming?
  4. 4:28Core uses for asynchronous programming: speed & scalability
  5. 12:24Async in Python (techniques)
  6. 15:54Demo: Fibonacci generator
  7. 29:09Anatomy of an async method
  8. 29:25Performance improvements: Sync & async version
  9. 30:10Demo: web scraping
  10. 42:44Q&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.