Leveraging Async and Await in Modern Python
summary
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
chapters (10)
- 0:00Start
- 1:38Introduction
- 2:16What is asynchronous programming?
- 4:28Core uses for asynchronous programming: speed & scalability
- 12:24Async in Python (techniques)
- 15:54Demo: Fibonacci generator
- 29:09Anatomy of an async method
- 29:25Performance improvements: Sync & async version
- 30:10Demo: web scraping
- 42:44Q&A
related talks
27m"Python’s tale of concurrency"
30mLet's get you started with asynchronous programming
01h 21mTUTORIAL: Async Python, Good it is
01h 23mPython async/await unraveled
30m"Asyncio by Example"
35mHow Do Python Coroutines Work?
24mA Crash Course in Python 3's asyncio
32mDemystifying AsyncIO: Building Your Own Event Loop in Python
