Related prerequisite: recovery and deduplication of asynchronous effects.
Communication · Intermediate · 9 min
Pub/Sub & Events
Distinguish broadcasting an event from assigning one job to a competing worker.
1Order service2Email subscriber
- 1Order service → Email subscriberRequestCall every dependent service directly
- 2Email subscriber → Order serviceReplyReply: Email subscriber
Conceptual illustration · figures do not imply user counts, deployed capacity or replica counts.
2 components visible · Order service + Email subscriber highlighted
Orange: request / query · Blue: reply · Purple: event / control · Arrows show direction; speed is illustrative.
You’ll learn
- Independent consumers need independent delivery state.
- An event needs identity, meaning and an evolution policy.
- Replay safety belongs to each effect boundary.
PUT THE IDEA TO WORK
From learning to practice
RELATED PATTERNS

