Introduction: Why architecture diagrams matter to agile teams
Agile teams make architectural decisions continuously: adding a service, changing a database, connecting a third-party API, or shifting work between teams. When those decisions live only in conversations or code, it can be difficult for a new teammate, stakeholder, or future maintainer to understand how the system fits together.
The C4 Model provides a simple way to explain software architecture at different levels of detail. Its diagrams can be treated as lightweight team communication: create the views that help people make decisions, keep them close to the work, and update them when the system changes. You do not need to produce every possible diagram; the C4 site notes that System Context and Container diagrams are enough for many development teams.

This guide uses a fictional online shop to demonstrate the approach, with C4-PlantUML examples that can be pasted into a compatible editor such as VPasCode. VPasCode supports PlantUML C4 diagrams and provides a browser-based editor with a rendered preview.
What is the C4 Model?
C4 is a notation-independent way to describe software architecture using a hierarchy of views. The name refers to four core diagram types: Context, Containers, Components, and Code. Each level zooms in further, helping a team tell the right architectural story to a particular audience.
A useful mental model is a set of maps:
-
Context: Where is the system, and who or what interacts with it?
-
Container: What are the major applications and data stores inside it?
-
Component: What are the main responsibilities inside a selected container?
-
Code: How are selected components represented in implementation-level detail?
Here, “container” is a C4 term for a separately runnable or deployable application or data store—not necessarily a Docker container. A “component” groups related functionality inside a container; it is generally not a separately deployable unit.

The four C4 levels and supporting diagrams
| View | What it shows | Typical audience | When it helps |
|---|---|---|---|
| System Context | The system, its users, and external systems | Product, delivery, and engineering teams | Agreeing on scope and integrations |
| Container | The applications, services, and data stores that make up the system | Developers, architects, and technical stakeholders | Discussing technology boundaries and responsibilities |
| Component | Major functional building blocks inside one container | Developers and architects | Exploring a complex application or service |
| Code | Selected implementation details, such as classes or interfaces | Developers | Explaining a specific design detail |
C4 also has supporting views: System Landscape shows several systems in a broader environment; Dynamic shows how elements collaborate in a particular scenario; and Deployment maps software to its runtime infrastructure. These are useful when they answer a concrete question, rather than as a requirement to document everything.
A practical C4 workflow for an agile team
Use C4 incrementally, alongside product and engineering work:
-
Choose the conversation. Decide what the team needs to understand: system scope, service boundaries, a user journey, or runtime deployment.
-
Start at the appropriate level. Begin with Context if scope is unclear; use Container to discuss applications and data stores. Add a Component view only when a container needs more explanation.
-
Agree on names and responsibilities. For each element, record what it is, what it does, and—where useful—its technology.
-
Show important relationships. Label connections with their purpose and, when useful, the interaction method or protocol.
-
Review with the people who build and operate it. A diagram is a model to discuss and correct, not a substitute for those discussions.
-
Update it when an architectural change matters. Treat changes to the diagrams like other documentation changes: make them reviewable and publish the approved version where the team can find it.
A diagram is most useful when it answers a question clearly. Avoid adding every class, endpoint, or infrastructure detail simply because the tool can display it.
Tools in the Visual Paradigm ecosystem

The tools can play complementary roles:
-
Visual Paradigm’s C4 modeling tools support structured C4 modeling. Its C4 materials describe System Context, Container, Component, System Landscape, Dynamic, and Deployment views.
-
C4 PlantUML Studio is a browser-based option for generating C4 diagrams using PlantUML from a system description.
-
Visual Paradigm AI Diagramming Chatbot can help generate, explain, or refine diagrams from natural-language requests.
-
VPasCode is a text-based diagram editor. It supports PlantUML, including C4 diagrams, and provides live rendering in the browser.
-
OpenDocs can be used to connect diagrams with explanatory project documentation. Visual Paradigm describes sending finished VPasCode diagrams to OpenDocs.
A practical division of labor is: use AI to get a first draft, VPasCode to edit and review the PlantUML source, and the team’s documentation space to publish the agreed explanation and diagrams.
Worked example: an online shop
Assume a small online shop where customers browse products and place orders. The shop uses an external payment provider and an external shipping service. These examples illustrate the views; replace the elements and technology labels with the facts about your own system.
System Context
This view establishes the system boundary and key relationships.

@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Context.puml
title Online Shop — System Context
Person(customer, "Customer", "Browses products and places orders")
System(shop, "Online Shop", "Lets customers browse, buy, and track products")
System_Ext(payment, "Payment Provider", "Authorizes and processes payments")
System_Ext(shipping, "Shipping Service", "Provides shipment and delivery updates")
Rel(customer, shop, "Browses and places orders")
Rel(shop, payment, "Requests payment authorization")
Rel(shop, shipping, "Creates shipments and checks delivery status")
@enduml
Ask: Is the system boundary clear? Are the important people and external systems shown? If the diagram cannot answer those questions, refine it before adding lower-level details.
Container
This view zooms into the shop and shows its major applications and data stores.

@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml
title Online Shop — Container Diagram
Person(customer, "Customer", "Browses products and places orders")
System_Ext(payment, "Payment Provider", "Processes payments")
System_Boundary(shop, "Online Shop") {
Container(web, "Web App", "Web application", "Displays the storefront and checkout")
Container(api, "Shop API", "Application service", "Handles catalog, cart, and order operations")
ContainerDb(db, "Shop Database", "Relational database", "Stores products, customers, and orders")
Container(queue, "Event Queue", "Message broker", "Carries asynchronous order events")
}
Rel(customer, web, "Uses", "HTTPS")
Rel(web, api, "Calls", "HTTPS/JSON")
Rel(api, db, "Reads and writes")
Rel(api, queue, "Publishes order events")
Rel(api, payment, "Requests payment authorization", "HTTPS")
@enduml
The container view should emphasize meaningful boundaries and interactions—not every library, endpoint, or deployment replica.
Component
A component diagram zooms into one container. For this example, it focuses on the Shop API.

@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Component.puml
title Shop API — Component Diagram
Container_Boundary(api, "Shop API") {
Component(catalog, "Catalog Controller", "HTTP component", "Handles product browsing requests")
Component(order, "Order Service", "Business logic", "Creates and manages orders")
Component(paymentAdapter, "Payment Adapter", "Integration component", "Communicates with the payment provider")
Component(orderRepo, "Order Repository", "Data-access component", "Loads and stores order records")
}
ContainerDb(db, "Shop Database", "Relational database", "Stores products and orders")
System_Ext(payment, "Payment Provider", "Processes payments")
Rel(catalog, orderRepo, "Reads product data")
Rel(order, paymentAdapter, "Requests payment")
Rel(order, orderRepo, "Stores order")
Rel(paymentAdapter, payment, "Calls", "HTTPS")
Rel(orderRepo, db, "Reads and writes")
@enduml
Components are logical groupings of functionality within the API container. Do not model each class as a component; use the view to show architectural responsibilities that matter to a discussion.
Dynamic and Deployment views
Use a Dynamic view to clarify an interaction sequence such as checkout: the customer submits an order, the API requests payment authorization, the order is recorded, and an event is published for fulfillment. Use a Deployment view to show where the Web App, Shop API, database, and queue run in a particular environment.
These supporting diagrams are especially helpful when the question is about behavior or runtime placement. Keep each one focused on a scenario or environment; a diagram that tries to show every flow and every infrastructure detail can become hard to read.
Using C4-PlantUML in VPasCode
VPasCode supports PlantUML and C4 diagrams, with code editing and a rendered preview in its browser-based workspace.

A beginner workflow:
-
Open VPasCode and create or select a PlantUML diagram.
-
Paste one of the examples above into the editor.
-
Check the rendered preview. If it fails, inspect the syntax and the C4-PlantUML include.
-
Replace the example’s people, systems, boundaries, relationships, and descriptions with your team’s agreed model.
-
Save the source file in the project’s documentation or architecture repository, so changes can be reviewed over time.
-
Export an image or PDF when you need to share a snapshot; retain the editable source as the maintainable artifact. VPasCode describes image and document export options on its product pages.
The examples use a remote C4-PlantUML include. In a team workflow, make sure your rendering environment can retrieve that dependency. For controlled or offline environments, establish a team-approved way to manage the dependency rather than assuming a remote include will always be available.
Using Visual Paradigm’s AI tools effectively
AI can help overcome the blank page, but it cannot confirm whether its description matches the real system. Give it specific, bounded input and review the result with the people who know the architecture.
A useful prompt might be:
Create a C4 Container diagram for an online shop. Show the Customer, Web App, Shop API, relational Shop Database, Event Queue, and external Payment Provider. Label the main relationships with their purpose and protocol. Do not invent services or technologies that are not stated. Return PlantUML using C4-PlantUML.
Then review the output:
-
Check the facts: Are the systems, users, and integrations real?
-
Check the boundaries: Is each element placed inside or outside the system correctly?
-
Check the level: Does the view show the right amount of detail?
-
Check relationships: Do labels describe meaningful interactions?
-
Check the code and rendering: Does the source render, and is the resulting diagram readable?
Visual Paradigm describes its AI tools as supporting natural-language diagram generation and conversational refinement; VPasCode also describes AI-assisted generation and code editing capabilities. Feature availability can depend on the particular product and plan, so check the current product details when selecting a workflow.
Keeping architecture documentation useful and current
Treat the C4 model as part of the team’s working knowledge, not as a one-time deliverable.
-
Give views owners. The team responsible for an application or service is often best positioned to review its details.
-
Make updates part of relevant work. When a change alters a boundary, dependency, or important interaction, include a diagram update in the change.
-
Review source changes with code changes. Text-based diagrams can be diffed and discussed in the same way as other text artifacts.
-
Publish the approved view with a short explanation. Readers need to know the scope, audience, and any important assumptions.
-
Keep diagrams small and purposeful. Split views when they become crowded or mix unrelated concerns.
-
Distinguish facts from decisions and proposals. Mark planned or hypothetical elements so they are not mistaken for the production architecture.
A diagram kept in source control can be easier to review and update than an isolated image, but it does not update itself when code changes. The team still needs a review habit and a clear source of truth.
Common beginner mistakes
-
Trying to draw all four levels immediately. Start with the view that answers the current question.
-
Treating every box as a microservice. Containers include applications and data stores; they describe architectural units, not a preferred deployment style.
-
Putting implementation detail into a Context diagram. Context is about the system’s scope, users, and external dependencies.
-
Using unexplained labels. Name the relationship in terms readers understand, such as “requests payment authorization.”
-
Mistaking components for deployable services. Components sit inside a container; the container is generally the deployable unit.
-
Accepting AI output without validation. A plausible diagram can still describe a system that does not exist.
-
Letting the diagram drift from reality. Assign ownership and update it when meaningful architecture changes occur.
-
Over-documenting. More boxes do not necessarily mean more understanding.
A practical adoption checklist
-
Pick one system or feature to model.
-
Agree on the system boundary and intended audience.
-
Create a Context view with key users and external systems.
-
Add a Container view if the internal application and data boundaries need explanation.
-
Add Component, Dynamic, or Deployment views only when they answer a specific question.
-
Review the diagrams with developers and relevant stakeholders.
-
Store editable diagram source alongside the team’s project documentation.
-
Decide who reviews updates and when they are expected.
-
Publish the approved diagrams with concise context and assumptions.
Conclusion
C4 gives agile teams a practical way to communicate architecture at several levels, without requiring every team to create every diagram. Start with the system boundary and its most important relationships, then zoom in only when a deeper view will help.
Visual Paradigm’s modeling tools, AI capabilities, and VPasCode can support different steps—from drafting and refining to editing PlantUML and publishing documentation. The lasting value, however, comes from the team’s judgment: accurate boundaries, clear labels, and diagrams maintained as part of the work.