System Design
9. Message Queues and Event-Driven SystemsAnimated
Choreography
Services react to each other's events.
The idea
No central controller. Each service listens for events and emits the next.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- current message
- earlier
- failure or attack
Each service reacts to events; there is no central coordinator.
- step:
- 1/5
- from:
- Order
- to:
- Payment
1/5
Time runs downward. Solid arrows are requests, dashed arrows are replies.
Step by step
- 1A service publishes an event
- 2Others react
- 3They publish further events
- 4The flow emerges
Where it is used
Simple workflows.
Watch out for
Hard to see the whole flow.