Skip to content
Ameen Abozaid
Planned lessonMID-063-L05

Sequence diagrams

  • Lesson 5 of 7
  • Mid-level
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

text
sequenceDiagram
  Orders->>Inventory: ReserveStock
  Inventory-->>Orders: StockReserved
  Orders->>Payments: ChargeCard
  Payments--)Orders: PaymentFailed
  Orders->>Inventory: ReleaseStock

Check 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.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Continue to next lesson

Type to search levels, phases, modules and lessons.