Async, multithreading and multiprocessing resources
Articles, books, and videos on Python asyncio, multithreading, and multiprocessing
Websites
- asyncio: a library with too many sharp corners: Common footguns and unexpected behaviors in
asyncio. - AsyncIO: Why I Hate It: Critical look at the design trade-offs and ergonomics of Python’s
asyncio. - GUI commits: Effective Python Async like a PRO 🐍🔀: Practical patterns for writing clean async Python code.
- Limiting concurrency in Python asyncio: the story of async imap_unordered(): Step-by-step walkthrough of bounding concurrent tasks in
asyncio. - Michał Klich: asyncio: real world coroutines: Working with coroutines, error handling, retries, and progress tracking in production.
- Michał Klich: asyncio’s event loop: Under-the-hood explanation of how the
asyncioevent loop schedules work. - Python/Django AsyncIO Tutorial with Examples: Introduction to asynchronous programming in Python and Django.
- RealPython: Python’s asyncio: A Hands-On Walkthrough: Comprehensive tutorial on
async/awaitand coroutine patterns in Python. - RealPython: Speed Up Your Python Program With Concurrency: When to choose
asyncio,threading, ormultiprocessingin Python. - SuperFastPython: Asyncio Event Loop in Separate Thread: Running and interacting with an
asyncioevent loop on a background thread. - SuperFastPython: Asyncio gather() Limit Concurrency: Using semaphores with
asyncio.gather()to cap concurrent execution. - SuperFastPython: Parallel Nested For-Loops in Python: Patterns for parallelizing nested loops with process pools and queues.
- SuperFastPython: Python Asyncio: 5 Common Asyncio Errors in Python (and how to avoid them): Troubleshooting frequent
asynciomistakes and warnings. - SuperFastPython: Python Asyncio: The Complete Guide: End-to-end reference guide to Python’s
asynciomodule. - The easy way to concurrency and parallelism with Python stdlib: Pragmatic guide to concurrency using Python’s standard library (
concurrent.futures).
Books
- Using Asyncio in Python: Caleb Hattingh’s O’Reilly book on understanding Python’s asynchronous programming features.
Videos
- Tutorial: Santiago Basulto - Python Concurrency: from beginner to pro: Hands-on video tutorial covering threads, processes, and async in Python.
- YouTube Playlist: import asyncio: Learn Python’s AsyncIO: Łukasz Langa’s deep-dive video series on Python
asyncio.