Message Queue
Put a durable buffer between the work and the workers: producers enqueue a task and move on, a pool of competing consumers pulls each task once, and the queue absorbs the spike neither side could survive alone.
Category
4 matches in Integration Patterns
Put a durable buffer between the work and the workers: producers enqueue a task and move on, a pool of competing consumers pulls each task once, and the queue absorbs the spike neither side could survive alone.
The publish/subscribe pattern decouples producers from consumers through a broker, enabling fan-out messaging, independent scaling, and resilient async integration.
How to hold a business transaction together across services when there is no distributed lock to save you: compensation, orchestration vs choreography, and semantic locks.
You cannot atomically write to your database and publish to a broker. The Outbox pattern makes the message part of the transaction — and the trap is that at-least-once delivery is the ceiling, not a bug.