Sequence diagrams
On This Lesson 4 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
show how a request or saga flows over time.
Planned topics
- Participants across the top, time flowing down, arrows as messages.
- Use them for one scenario: the happy path, then a key failure path.
- Show sync calls and async events differently, and name the event.
- Keep to about 6-8 participants; split the diagram if larger.
- Source as text (Mermaid or PlantUML) so it is diffable.
Draft outline details
Demonstration
sequenceDiagram
Orders->>Inventory: ReserveStock
Inventory-->>Orders: StockReserved
Orders->>Payments: ChargeCard
Payments--)Orders: PaymentFailed
Orders->>Inventory: ReleaseStockCheck your understanding
Which scenario should you draw besides the happy path?
Show answer
A significant failure, such as payment failing and compensation.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.