ProcessSample

UML sequence diagram

Who talks to whom, in what order, for one scenario. Time runs down the page; each arrow is one message between participants.

Try this

  1. 01Step through the messages one at a time and watch the activation bars grow and close as calls return.
  2. 02Find the OrderPaid event: the order service does not wait for the email, so the customer is not kept waiting either.
  3. 03Count how long the web app stays active: it is blocked for the whole payment round trip.

Notation

Participant
A person, service or database taking part, drawn at the top.
Lifeline (dashed)
The participant’s existence over time.
Activation bar
The period when a participant is busy handling a call.
Synchronous message (filled head)
The caller waits until it gets an answer.
Asynchronous message (open head)
Fire and forget: the caller does not wait.
Return (dashed)
The reply to an earlier synchronous call.

Use it when

  • Designing or debugging an API call chain
  • Explaining one scenario across several services
  • Spotting chatty or blocking interactions

Avoid it when

  • Showing every possible path (it describes one scenario at a time)
  • Showing structure rather than behaviour

More in Process