Integrations with Asyncio
summary
An asyncio-based dispatcher runs heterogeneous plugin subprocesses and communicates with them over IPC using their stdout/stderr, while server-to-dispatcher communication uses websockets and HTTP implemented with aiohttp and asyncio sockets. Messages are JSON Lines; subprocesses are launched with asyncio.create_subprocess_exec and read with streaming readers; the repository includes runnable examples. It is a proof-of-concept missing SSL, persistence, marshmallow validation, and robust socket-reconnect/error handling, so not production-ready.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 1:18Plugin problems across languages
- 3:45Dispatcher architecture
- 6:18Asyncio and coroutines
- 8:25Code structure and comms
- 10:33Demo with remote scripts
- 14:54Dispatcher implementation
- 18:47Line processing and errors
- 21:44Future improvements
- 23:59Conclusion & Q&A
related talks
32mEnhancing AsyncIO for Complex Applications
33mArtisanal Async Adventures
32masyncio community, one year later
31mA Really Gentle Introduction to Asyncio
40mAdvanced asyncio: Solving Real-world Production Problems
29mWhat in the World is Asyncio?
27mTaking Django Async
31mInside ASGI The Engine Behind Modern Python Web Frameworks
