Queues - The Secret Sauce
summary
Shows concrete patterns using asyncio queues to serialize access to a risky resource by confining the connection object inside a single handler task, with request/response tuples and a single-consumer loop. Demonstrates an event bus that fans out a central event queue into per-subscriber queues, uses a shutdown sentinel for graceful exit, and recommends logging to trace origins. Notes using an executor for blocking libs like SQLAlchemy or requests when needed.
AI-written summary · about
chapters (10)
- 0:00Intro
- 1:37A Simple Queue
- 3:01Locking Things Down
- 4:32The Silver Bullet
- 5:53Serialising Using Queues
- 7:34Event Dispatching
- 9:58A Thin Event Bus
- 10:56Publishing Events
- 11:17Subscribing to Events
- 12:45Summary
related talks
40mQueues and Locks: Theory and Practice
39mMastering message Queues
44mUnlocking Business Agility with Event-Driven Architectures
47mEverything Loosely Coupled - Advanced Integration Patterns and Their Trade-Offs
42mIt's like 10,000 streams when what you need is a queue
46mReal-world Examples of Message Queue Usage: Insights from RabbitMQ
53mMaking tomorrow's code look like today's
02h 45mThe world of High Performance Distributed & Async Task Queue(s) with Celery
