Part 4 · Reading the Diagrams
A component diagram shows what connects to what. A sequence diagram shows what happens in what order — the messages that pass between participants over time, read top to bottom. It is the artefact that turns a static picture of systems into a moving picture of an interaction, and for that reason it is the single most powerful diagram for surfacing a particular kind of risk: the failure that only appears when you trace what happens step by step, in sequence, including the steps where something goes wrong.
This chapter teaches the reading of a sequence diagram through a clinically charged example — a community nurse accessing a patient record in the field — where reading the sequence is not an academic exercise but a patient-safety instrument.
The Anatomy: Lifelines, Messages, and Time
A sequence diagram has a small, consistent vocabulary, and once you have it the diagrams read almost like a script.
Participants are listed across the top — the actors and systems involved in the interaction. A nurse, a mobile app, an authentication service, the EPR. Each participant has a lifeline, a vertical dashed line dropping down from it. The lifeline represents that participant’s existence through time.
Time flows downward. This is the single most important convention. The top of the diagram is the start of the interaction; the bottom is the end. Anything higher happens before anything lower. Reading a sequence diagram is reading down the page as if it were a timeline.
Messages are the horizontal arrows between lifelines. A solid arrow is typically a call or request — one participant asking another to do something. A dashed arrow is typically a return or response — the answer coming back. The direction of the arrow shows who is asking whom.
``` Nurse Mobile App Auth Service EPR │ │ │ │ │── open record ▶ │ │ │ │── authenticate ─▶│ │ │ │◄── token ─ ─ ─ ─ │ │ │ │── fetch record ──┼──────────────▶│ │ │◄ ─ ─ patient record ─ ─ ─ ─ ─ ─ ─ ─ │ │◄ display ─ ─ ─│ │ │ ```
Read down the page, this says: the nurse opens a record; the app authenticates and gets a token back; the app fetches the record from the EPR; the record returns; the app displays it. The diagram has turned an interaction into a legible order of events.
Reading for the Happy Path First
The first pass through any sequence diagram is the happy path — the interaction as it unfolds when everything works. Read top to bottom, narrate each message in plain language, and confirm the story makes sense. If you cannot narrate the happy path as a coherent sequence of events, either the diagram is wrong or you have misread a message direction.
The happy path tells you what the interaction is for and what participants it requires. Reading Meridian’s nurse-access happy path tells you immediately that accessing a record in the field requires the mobile app, an authentication service, and the EPR — three systems that all have to be available and reachable for a nurse to see a patient’s record. That dependency is a fact about the world the diagram makes visible: a nurse in the field is depending on three systems and a network connection, not one.
Reading for Failure
The happy path is the easy half. The reading skill that matters — the one that makes sequence diagrams a safety instrument — is reading for failure: asking, at each message, what happens if this step fails or is slow?
A well-drawn sequence diagram includes failure paths explicitly — alternative flows (often boxed and labelled “alt” or “opt”) showing what happens when authentication fails, when the EPR times out, when the network drops. A poorly-drawn one shows only the happy path, and reading it for failure means mentally inserting the failures the diagram omitted.
The questions to ask at each message are concrete. What if this call never returns? (A hung request can freeze the whole interaction.) What if it returns an error rather than the expected response? (Is there a handler, or does the error propagate as a crash?) What if it is slow rather than failed? (Timeouts are often worse than clean failures, because the participant waits.) What state is the system left in if the sequence stops here? (A sequence interrupted halfway can leave data half-written.)
Each of these questions, asked at each step, turns the diagram into a risk assessment. And in a clinical context, the answers are not abstract.
Meridian: The Nurse in the Field
Meridian’s sequence diagram for a community nurse accessing a patient record in the field is read by the EA not as documentation but as a clinical-safety instrument, and reading it for failure surfaces a risk that the happy path entirely concealed.
The happy path is unremarkable: nurse opens record, app authenticates, app fetches record from EPR, record displays. Read top to bottom, it works.
Reading for failure changes the picture. The EA asks the failure question at the authentication step: what happens if the auth service is unreachable — which, for a nurse in a rural area with poor mobile coverage, is not an edge case but a daily reality? The diagram, as originally drawn, had no answer; it showed only successful authentication. Tracing the actual system behaviour revealed that a failed authentication left the nurse with no record at all — a hard failure at the exact moment a clinician needs patient information, often in someone’s home, often urgently.
The EA asks the failure question at the fetch step: what if the EPR is slow rather than down? The answer was worse than a clean failure. The app waited, with no timeout and no feedback, so the nurse saw a frozen screen with no indication of whether the record was coming or whether to give up and phone the surgery. A slow EPR produced a clinician staring at a spinner at a patient’s bedside.
And the EA asks the state question: if the sequence is interrupted after authentication but before the record loads, what does the nurse have? The answer — a logged-in session with no data and no guidance — is the worst of both worlds.
None of these risks were visible on the happy path. All of them were patient-safety issues. All of them surfaced from the discipline of reading the diagram for what happens when each step fails. The redesign that followed — offline caching of recent records, explicit timeouts with clear feedback, a defined behaviour for partial failure — was driven entirely by reading the sequence diagram as a question rather than a description. This is why the EA treats sequence diagrams as the most powerful artefact for surfacing integration risk: they are the diagram that forces you to confront the failure modes that static diagrams let you ignore.
Why Sequence Diagrams Surface Risk Best
Among all the diagram types, sequence diagrams are uniquely suited to surfacing integration and reliability risk, for a structural reason: they are the only common diagram that represents time and therefore failure-in-time.
A component diagram can show that the mobile app depends on the auth service, but it cannot show what happens when that dependency is slow rather than absent, or what state things are in halfway through an interaction. A capability map cannot show interaction at all. The sequence diagram, by laying the interaction out along a time axis, makes every step a place where you can ask “and what if this fails here?” — and integration failures are almost always failures at a specific step under specific conditions, which is exactly what the sequence diagram is built to represent.
For a reader, this means: when the conversation is about whether an integration is safe, reliable, or clinically acceptable, the sequence diagram is the artefact to ask for. It is where the failure modes live, and reading it for failure is the most valuable diagram-reading skill in the book.
Translator Panel
Architects say: “Let’s walk the sequence diagram and check the failure paths at each step.” > What that means: They are doing the reading this chapter teaches — going message by message and asking what happens when each one fails, is slow, or returns an error. The phrase “failure paths” is the signal that they are reading for risk rather than just confirming the happy path.
Delivery teams say: “The sequence works — here’s the diagram.” > What that means: They have shown the happy path, which proves the interaction works when everything works. The literate response is to read it for failure: what does this diagram show happening when the auth service is unreachable or the EPR is slow? If the answer is “the diagram doesn’t show that”, the hardest and most important part of the design has not yet been done.
The Key Idea
A sequence diagram shows what happens in what order — participants across the top, lifelines dropping down, time flowing downward, solid arrows for calls and dashed arrows for responses. The first pass reads the happy path to confirm the interaction makes sense and to see which participants it depends on. But the reading that matters is reading for failure: asking at each message what happens if the step fails, is slow, or returns an error, and what state the system is left in if the sequence stops there. Because the sequence diagram is the only common artefact that represents time, it is uniquely able to surface failure-in-time — which is what integration failures almost always are. When the question is whether an interaction is safe and reliable, the sequence diagram, read for failure rather than success, is the instrument that answers it.
Next: Chapter 37 turns to the activity diagram — the view of a process as flow, with its decision points and parallel paths — and how it differs from the sequence diagram and when each is the right tool.
Further Reading
- UML 2.5 specification — Sequence Diagrams (omg.org): The formal notation, including the combined fragments (`alt`, `opt`, `loop`) that represent failure and alternative paths. Worth knowing so you can read strictly-drawn diagrams and spot when failure paths have simply been omitted.
- Martin Fowler — UML Distilled (Addison-Wesley, 3rd ed. 2003): The most readable short guide to sequence diagrams and the rest of UML — exactly the level of detail a reader rather than a producer needs.
- Nancy Leveson — Engineering a Safer World (MIT Press, 2011): On why tracing interactions step by step, including failure states, is the foundation of safety engineering — the deeper rationale for reading clinical sequence diagrams as safety instruments.