Skip to content

Sequence Diagram

A UML interaction view that orders message send-and-receive occurrences along participating lifelines, using typed messages and interaction fragments to specify permissible traces of a scenario.

Version
v2 · 2026-09-06 · History
Domain-specific #
2754
Origin domain
software engineering
Subdomain
behavioral modeling
Aliases
UML sequence diagram, Interaction sequence diagram, Event diagram, Event scenario

Core Idea

A sequence diagram is a Unified Modeling Language interaction view that shows participating entities as lifelines and communications as messages ordered by their send and receive occurrences. Its subject is not merely “what happens next.” It specifies an interaction: which participants exist in the modeled scenario, which event occurrences are attributed to each participant, which communications connect them, and which ordering constraints a conforming trace must respect.

The familiar drawing places lifelines horizontally and time generally downward. A message arrow connects a sending occurrence on one lifeline to a receiving occurrence on another. The visual vertical order exposes local event order, while UML’s interaction semantics governs what order is actually asserted.

Scope of Application

Sequence diagrams are used in requirements elaboration, use-case realization, API and service design, distributed-system reasoning, protocol documentation, test design, and reverse engineering. A system sequence diagram deliberately treats a system as a black box and shows messages crossing its boundary; a design-level diagram may expose internal objects or components. Both retain the lifeline/message/occurrence identity.

In object-oriented analysis, system sequence diagrams are commonly used to turn a use-case scenario into an explicit inventory of actor–system events before internal responsibilities are assigned.

Clarity

Read a sequence diagram in three passes. First, identify the participants and the boundary of the scenario. Second, read each lifeline’s events from top to bottom, pairing message sends with receives. Third, interpret every combined fragment according to its operator and guard. This prevents the common mistake of reading the page as a single total timeline.

Manages Complexity

The diagram reduces a distributed scenario into participant-local event streams plus cross-participant message relations. That decomposition makes responsibility and coordination visible without forcing the reader to inspect every participant’s internal implementation. Combined fragments compress families of traces: one loop frame can stand for many repetitions, one alt frame for guarded alternatives, and one par frame for multiple valid interleavings.

Abstract Reasoning

The main reasoning move is partial-order analysis. Events on one lifeline have a local order; a message constrains send and receipt; fragment operators add further relations. The valid global behaviors are linearizations consistent with those constraints. This is why two messages drawn near the same height need not be simultaneous and why concurrent operands can admit several executions.

Knowledge Transfer

The lifeline-and-message model transfers directly among software architecture, systems engineering, telecommunications, and business interaction modeling when the participants and event-order semantics remain literal. It also provides a bridge to concurrency theory, distributed traces, scenario-based testing, and protocol verification: graphical occurrences can be translated into event structures, temporal constraints, or test obligations.

Transfer is limited when arrows mean material flow, causal influence, or dependency rather than messages. Those drawings may borrow the visual grammar but do not instantiate the same interaction semantics.

Relationships to Other Abstractions

Local relationship map for Sequence DiagramParents appear above the current abstraction, mutual partners to the right, and children below. Node labels state whether each abstraction is prime or domain-specific; colors identify relation types.Sequence DiagramDOMAINPrime abstraction: Representation — is a kind ofRepresentationPRIME

Current abstraction Sequence Diagram Domain-specific

Parents (1) — more general patterns this builds on

  • Sequence Diagram is a kind of Representation Prime

    Representation is the proposed immediate parent.

Hierarchy path (1) — routes to 1 parentless root

Neighborhood in Abstraction Space

Sequence Diagram sits in a sparse region of the domain-specific corpus (87th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Unclustered & Miscellaneous (1565 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-09-08