Skip to content
IT glossary
ArchitectureUpdated December 3, 2026

UML

UML is a standard visual language for describing how a system is built and how it behaves. A sequence diagram is one type of UML diagram: it shows who sends messages to whom and in what order.

Also known as: диаграмма последовательности, sequence diagram

What UML is for

UML stands for Unified Modeling Language. It gives engineers a shared set of diagram symbols and rules, so a reader can tell whether an arrow means inheritance, a call, or something else from the type of diagram and the notation. UML isn't a programming language or a development process. You can use it to discuss a proposed design or explain an existing one.

Pick the diagram that answers your question. A class diagram is useful when you want to see types and their relationships. A state machine diagram shows how something, such as an order, moves between states. A sequence diagram shows how participants work together in an interaction, such as a customer submitting that order.

Read a sequence diagram

Each participant has a vertical line called a lifeline. A participant can be a person, an object, an application, or a service. An arrow from one lifeline to another represents a message. Follow events down each lifeline to see their order, but don't use the spacing to estimate how long a call takes.

A synchronous call has a filled arrowhead: the caller waits for the call to complete. An asynchronous message has an open arrowhead: the sender can continue without waiting for the receiver to finish. A dashed reply arrow can show what a call returns. Use an alt frame for alternative paths, with a condition for each path, or a loop frame for repeated behavior.

Example: one checkout request

This PlantUML sketch models what happens when a shopper places an order. PlantUML is a tool that renders diagrams from text; its syntax is not UML itself.

@startuml
participant "Web app" as Web
participant "Order API" as Orders
participant "Inventory service" as Stock
Web -> Orders: POST /orders
Orders -> Stock: check availability
Stock --> Orders: availability result
alt Item is available
  Orders --> Web: 201 Created
else Item is out of stock
  Orders --> Web: 409 Conflict
end
@enduml

The diagram shows that the web app gets its answer from the Order API, not directly from Inventory. It also gives reviewers a concrete question to ask: what should the Order API return if Inventory times out? A timeout isn't evidence that the item is out of stock. If that distinction matters to the design, show it as its own branch.

Use the right level of detail

Sequence diagrams are useful in API design reviews and integration specs, especially when different teams own the participants. Show boundaries, messages, and outcomes that readers need to agree on. Leave out private helper calls unless they explain something important. A sequence diagram also isn't a system inventory: if the question is which components exist and how they depend on one another, start with a component diagram or a C4 view.

In a technical interview

If asked to trace a request, name the participants, sketch the successful path, and add a failure that tests your design. Explain which calls block progress and what the caller sees if a dependency fails. Clear labels and a defensible explanation usually matter more than perfect UML notation unless the interviewer specifically asks for it.