C4 Dynamic Diagrams: Communication View, Sequence View, and Tooling

Read this post in:

A C4 dynamic diagram is a supplementary view that shows how elements from a C4 static model collaborate at runtime to carry out one scenario—a feature, use case, or user story. It is based on the UML communication diagram, formerly called a collaboration diagram. C4 also permits a sequence-style layout for the same kind of interaction; the two styles communicate the same underlying information in different ways.

Purpose and key concepts

C4’s core diagrams describe structure at different levels: system context, containers, components, and code. A dynamic diagram adds a behavioral view: it traces one particular path through elements already represented in that structure. It helps answer questions such as “Which parts participate in checkout?” and “What happens before the result is returned?”—questions a static container diagram alone does not settle.

Key concepts:

  • One scenario per diagram. Give the view a specific title, such as “Place order — successful payment.”

  • Choose one C4 level. Show systems, containers, or components according to the question; avoid mixing architectural levels in one view.

  • Reuse modeled elements. Participants should correspond to elements in the related C4 diagrams, not arbitrary implementation details.

  • Label interactions with actions. Use concise descriptions such as “Create order” or “Authorize payment.” For important boundaries, identify the protocol or channel.

  • Make the order legible. Communication style uses numbered interactions; sequence style uses vertical time order.

  • Show only what matters. Include the key interactions needed to understand the scenario, not every internal operation.

C4 recommends using dynamic diagrams sparingly—for interesting, recurring, or interaction-heavy behavior—because each diagram is another artifact to keep aligned with the architecture.

When to use a sequence diagram

Use a communication-style dynamic diagram when the main point is who interacts with whom, and a compact, spatial view of the participants is helpful. It works well when readers already know the corresponding context or container diagram and the flow is short enough that numbered links remain easy to follow.

Use a sequence-style dynamic diagram when the main point is exact order over time: many steps, repeated request/response exchanges, callbacks, or significant asynchronous behavior. Its lifelines make chronology easier to scan. If the diagram needs detailed branches, loops, or implementation-level calls, a separate UML sequence diagram may be the better behavioral specification; keep the C4 view at architectural scale. C4 explicitly allows either collaboration-style or sequence-style presentation.

Choose… Best when you need to emphasize…
C4 dynamic, communication style Participants, their relationships, and a readable overview of a scenario
C4 dynamic, sequence style The chronological ordering of architectural interactions
Detailed UML sequence diagram Fine-grained behavior, such as branches, loops, or method-level calls

Example: online-shop checkout

The supplied example is a useful starting point, but it has two clarity issues: the payment response and the order-service response both use step 5, and the response labels are placed on the same relationship as the forward messages. A simple convention is to number each message separately and use a letter for a sub-step only when it genuinely belongs to another step. For greater readability, the version below uses unique numbers throughout.

@startuml
!include https://static.visual-paradigm.com/web/resources/plantuml-stdlib/themes/vp.puml

skinparam {
  vpDiagramType CommunicationDiagram
  nodesep 80
}

<style>
object {
  MinimumWidth 80
}
</style>

left to right direction

title Online Shop — Place Order (Communication View)

object "Customer" as Customer
object "Web App" as Web
object "Orders API" as Orders
object "Payment Adapter" as Payments
object "Orders DB" as DB
object "Payment Provider" as Provider

Customer -[#blue]- Web : <color:blue>▶ 1: Submit checkout</color>\n<color:blue>◀ 8: Display checkout result</color>
Web -[#green]- Orders : <color:green>▶ 2: Create order</color>\n<color:green>◀ 7: Return checkout result</color>
Orders -[#orange]- Payments : <color:orange>▶ 3: Request authorization</color>\n<color:orange>◀ 6: Return authorization result</color>
Payments -[#red]- Provider : <color:red>▶ 4: Authorize payment</color>\n<color:red>◀ 5: Return authorization response</color>
Orders -[#purple]- DB : <color:purple>▶ 6a: Save order</color>

@enduml

Important: This is still a sketch of a scenario, not a complete transactional specification. In particular, it implies an order-save step and a payment result but does not define whether the order is saved before or after authorization, or what happens when authorization fails. Decide that behavior from the intended system design and make the ordering explicit. If the failure path matters, document it as a separate scenario or use a sequence diagram with clear branching.

The CommunicationDiagram setting and the Visual Paradigm theme include are specific to the Visual Paradigm rendering setup shown here. PlantUML’s standard sequence-diagram syntax is a different form; don’t assume this particular communication layout will render identically in every PlantUML renderer.

Visual Paradigm and VPasCode

Visual Paradigm presents its C4 support as a modeling environment for the C4 hierarchy and supplementary views, including dynamic diagrams. Its product information describes Desktop as oriented toward deeper modeling and offline work, and VP Online as a browser-based option with collaboration and AI-assisted diagram generation.

VPasCode is Visual Paradigm’s diagram-as-code offering: the vendor describes it as a text-based workspace for authoring and rendering diagram code, including PlantUML. The AI-assisted C4 PlantUML Studio is presented as a way to generate a starting point from a text description, view the code alongside the rendered diagram, and refine it. VPasCode is useful if a text-first workflow fits your team, but check which diagram syntax and extensions your chosen renderer supports before relying on a particular source file.

Why combine modeling tools, code, and AI?

  • Faster first draft: AI can turn a scenario description into an initial structure or code sketch.

  • Reviewable changes: Text-based source can be diffed and reviewed alongside application or documentation changes.

  • Editable output: The rendered diagram can be revised through its source rather than treated as a fixed image.

  • Different audience needs: A model-based editor may help with structured modeling and presentation, while code-based diagrams can suit developer workflows.

  • Human-controlled accuracy: Review generated participants, relationships, sequence, and failure paths against the real system; AI-generated architecture is a draft, not evidence that the design is correct.

The practical case for Visual Paradigm’s ecosystem is its attempt to connect multiple steps—AI-assisted creation, diagram source, rendering, and editing—rather than offering only a blank canvas or only raw text. Its feature set may be useful when a team wants both model-oriented editing and code-based iteration. Treat claims about specific integrations, access, and plan entitlements as product details to confirm for the edition you use.

A practical workflow

  1. Start with the relevant C4 context, container, or component view.

  2. Pick one scenario that is important, recurring, or difficult to explain from the static view.

  3. Decide whether participant relationships or precise time order is the main communication goal.

  4. Draw only the participants and interactions needed to explain that scenario.

  5. Check that the sequence and failure behavior match the intended architecture.

  6. Keep the diagram source with the related documentation or code, and revisit it when the modeled elements or interaction change.

The main benefit is not the diagram format or tool by itself. It is a focused, maintainable explanation of how the architecture behaves in a scenario that matters.