Asyncio

A shop ledger page, 1899. Every line adds up.
Async Python for Experienced Developers: CPU-Bound vs IO-Bound Work
A practical guide to choosing asyncio, threads, or multiprocessing in Python, based on whether work is CPU-bound or IO-bound, with GIL basics.
4 min read
Blocking the Event Loop: Finding Latency Spikes in Async Python Pipelines
Find and fix blocking calls that stall an asyncio event loop, using debug mode, to_thread and executors, and why asyncio.sleep(0) hides the problem.
4 min read
Asyncio Tasks Silently Garbage Collected: Debugging the Disappearing Task
Why a fire-and-forget asyncio task can vanish mid-execution, how to keep strong references, and how TaskGroup makes lifetimes and exceptions explicit.
4 min read