Skip to content

A sequence diagram should not be an orphan ​

Sequence diagrams explain behavior, while a C4 diagram explains structure. Teams usually need both.

For an API application, I can attach PlantUML sequence diagrams that describe the flows handled by that application. Participants are selected from the current C4 layer, which prevents a sequence diagram from mixing unrelated levels of abstraction.

Sequence editor with PlantUML source beside the rendered interaction diagram
PlantUML on the left, the rendered diagram on the right; participants are validated against the current C4 level.

The editor supports group and alt folding for long flows. The same sequence diagram can also be embedded in the Markdown documentation of the element it belongs to.

That gives a reader a more useful path than a wiki link: start with the API application, read what it does, and inspect a specific interaction without losing context.