Python asyncio in Production: Where the Event Loop Bites You
asyncio is not a free concurrency upgrade. Blocking calls in coroutines, unhandled exceptions in tasks, and the subtlety of TaskGroup cancellation are where things go wrong.
asyncio is not a free concurrency upgrade. Blocking calls in coroutines, unhandled exceptions in tasks, and the subtlety of TaskGroup cancellation are where things go wrong.
Overview
This note is part of the field-notes archive generated for this site. The summary below is the published excerpt; you can expand the full write-up anytime in the CMS.
Related notes
Tags
- python
- asyncio
- concurrency
- production
- debugging
Manish Bookreader
Electronics enthusiast, Embedded Systems Expert, Linux/Networking programmer, and Software Engineer passionate about AI, electronics, books, and cooking.