TOPIC 13/4212 MINNOT STARTED

Sequence diagrams

A sequence diagram shows the messages between parts of a system in time order. Learn lifelines, messages and replies, and how one picture finds the missing reply.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: A scripted phone call. A script for a phone call lists who speaks first, who answers, and who speaks next. Read it line by line and you know the order of the whole call.

Sam is a , the person who finds out what people need. Sam works on Daily List, a to-do list app. Lily wants to invite a friend to share a list. Leo is the developer, the person who builds the app. Leo says, "The app tells the server, and the server tells the email service." Tom, the tester, asks, "And then what?"

So Sam draws a , which is a Unified Modeling Language (UML) picture of messages between parts, in time order. UML is a standard set of drawing rules for software.

Each part gets a lifeline, the vertical line showing one part over time. Here there are three: the App, the Server and the Email service.

Each arrow between them is a message, an arrow showing one request or reply. Time runs down the page.

As text: App → Server: send invite. Then Server → Email service: send email. Then Email service → Server: sent. Then Server → App: invite sent.

A real call can overlap and interrupt. This introductory scenario leaves out overlaps and interruptions. UML can model concurrency and timing constraints when those answer the question.

PLAIN WORDS · 3 in this section
lifeline
a vertical line that shows one part over time
interruptions
something that stops what you were doing for a moment
concurrency
many things happening at the same time

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the work.

THE REAL JOB A models message ordering and the contract needed by the chosen interaction.

  1. Pick one story
  2. List the parts
  3. Write the first message
  4. Follow the chain
  5. Add replies and gaps
Drawing a sequence diagram

HOW THE PICTURE MAPS

How each part of the picture matches the work
In the pictureIn the work
A scripted phone callA sequence diagram
Each speakerA lifeline
Each line spokenA message
The answer to a questionA reply
A real call where people talk over each otherReal timing the diagram hides

WHERE THIS PICTURE STOPS

  • A phone call has two speakers. A diagram may have many parts.
  • A simple scenario shows one path. UML can also model alternatives, repetition and concurrency, with partial ordering across lifelines.
  • A script is words. A message is a request that does work.

HOOK

Lines go down, arrows go across, replies come back.

REMEMBER IT THIS WAY

A chunk: a long list grouped so it is easier to hold.

Read lifeline events down the page and message sends before receives. Establish whether a response is expected; a missing reply arrow alone is not an error.

What each part of the trick stands for
In the trickWhat it stands for
Columnone part
Arrowa message between parts
Replya dashed reply arrow

TELL A FRIEND

A shows the messages between parts, in time order. Each part has a line, and each arrow is a request or a reply.

OFTEN MIXED UP WITH Activity diagrams. That topic shows the steps and choices of one piece of work. This one shows the messages between parts.

PRACTISE AND KEEP

Sources for this topic — 2 sources
  1. Official requirement

    Unified Modeling Language (UML) 2.5.1 specification page ↗ — Object Management Group · UML 2.5.1 December 2017, §§7.5,9.5.3,11.5,14,15,17–18: multiplicity, state/activity/interaction and use-case semantics; public normative PDF opened/read2026-11-06.

    UML 2.5.1 December 2017; §§7.5,9.5.3,11.5,14,15,17 and18 opened/read6 November 2026, including prior actor review. · Checked 2026-11-06

    Official public catalogue/PDF retrieved and the cited sections read. UML 2.5.1 December 2017; §§7.5,9.5.3,11.5,14,15,17 and18 opened/read6 November 2026, including prior actor review. Original educational paraphrase; no source artwork copied.

  2. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    What this simplifies: The Daily List parts and messages are invented for teaching. This topic shows only lifelines, messages and replies from the Unified Modeling Language and leaves out most other symbols.

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.