L3 Component Diagram Example
Section titled “ L3 Component Diagram Example”The L3 Component diagram zooms into one Service or Contract and shows what happens inside it: the Endpoints it reads from or writes to, and the steps in between. It is the most detailed diagram in the C4 zoom hierarchy and is meant for the people who build and run that Service.
New 7.12 An L3 has two settings. Its Architectural Scope is the System the diagram lives in, and its Subject is the Service or Contract whose inside it shows. The subject is drawn as the Container_Boundary, bound to the subject and read-only in the Designer. A set holds one Active L3 per subject.
This page is example 4 of the six Order-to-Cash C4 examples. See Example C4 Diagrams for an overview of all diagram types and when to use each.

Animated walkthrough: the imported L3 Component diagram, a Component bound to its Endpoint, View, and the breadcrumb back to the set and the L1 Context.
Scope and Subject for This Example
Section titled “Scope and Subject for This Example”| Example | Diagram type to pick in the import | Architectural Scope | Subject | When it is set | Needed before Promote |
|---|---|---|---|---|---|
| INT1337-RCV-Order-Incoming — L3 Component Diagram | Component | System Portal | Service INT1337-RCV-Order-Incoming | automatically: the Container_Boundary named after the Service gives the subject, and the scope is that Service's System |
✅ Yes (scope and subject) |
New 7.12 The import wizard takes both from the markup: the top-level Container_Boundary named after a Service gives the subject, and the Service's System gives the scope. In Review & Resolve, the subject is on the boundary row, labelled Subject of the Component diagram: change it there with Use existing Service or Use existing Contract, or choose No subject.
When to Use
Section titled “When to Use”- ✅ Onboarding developers and operators to one Service
- ✅ Showing which Endpoint a Service reads from, and the steps a message passes on its way through
- ✅ Showing which Services a Service hands messages to
- ⚠️ One Service per diagram: the O2C demo set has 14 L3s, one per Service
Example: INT1337-RCV-Order-Incoming
Section titled “Example: INT1337-RCV-Order-Incoming”This example uses the Order-to-Cash (O2C) demo data and zooms into the Service INT1337-RCV-Order-Incoming of the System Portal. Inside it, the order file arrives on the Endpoint Portal-OrderReceived-Drop and passes three steps that aren't Repository items. Outside it, the Service INT1337-SND-Order-Incoming takes the order on.
| Preview | Mermaid Code |
|---|---|
|
C4Component
title INT1337-RCV-Order-Incoming — L3 Component Diagram
Person(customer, "Customer", "Places orders and receives order confirmations")
Container_Boundary(rcv_order, "INT1337-RCV-Order-Incoming") {
Component(order_drop, "Portal-OrderReceived-Drop", "File drop", "The End Point the customer's order file arrives on")
Component(order_validator, "Order Validator", "C# / FluentValidation", "Validates the order schema, business rules and customer identity")
Component(dedup_guard, "Deduplication Guard", "C#", "Checks the Order Store so an order is never processed twice")
ComponentDb(order_repo, "Order Repository", "SQL Server", "Persists received orders before they are handed on")
}
Container_Ext(snd_order, "INT1337-SND-Order-Incoming", "Integration / XML", "Forwards the order to ERP for entry")
Rel(customer, order_drop, "Drops the order file", "JSON / O2C.Order.Received/1.0")
Rel(order_drop, order_validator, "Passes the order", "In-process")
Rel(order_validator, dedup_guard, "Passes the validated order", "In-process")
Rel(dedup_guard, order_repo, "Reads and writes the order record", "SQL")
Rel(dedup_guard, snd_order, "Hands the order on", "JSON / O2C.Order.Received/1.0")
|
|
What Each Element Binds To
Section titled “What Each Element Binds To”| Markup element | Macro | Binds to | Status in Review & Resolve |
|---|---|---|---|
| INT1337-RCV-Order-Incoming | Container_Boundary |
The Service of the same name: the diagram's subject | Matched, on the row Subject of the Component diagram |
| Portal-OrderReceived-Drop | Component |
New 7.12 The Endpoint of exactly that name | Matched |
| Order Validator, Deduplication Guard | Component |
Nothing: steps inside the Service | Unbound |
| Order Repository | ComponentDb |
Nothing: a step inside the Service | Unbound |
| INT1337-SND-Order-Incoming | Container_Ext |
The Service of the same name | Matched |
| Customer | Person |
A System with the C4 Type Person | Matched once an earlier import created it, otherwise New |
O2C.Order.Received/1.0 |
text after the / in a Rel technology |
New 7.12 The Message Type of exactly that name | Resolved |
Components on an L3
Section titled “Components on an L3”New 7.12 A Component on an L3 binds only to an Endpoint, and only to the one whose name is exactly the Component's name. The import needs read rights on Endpoints to match it, and the Designer's Resolve… offers only Use existing Endpoint, with no Create new. Any other Component is an unbound step, such as a pipeline stage, a map, a filter or, here, a validator.
An Endpoint Component takes its icon from the Endpoint's Component Type and shows an Endpoint kind badge in the inspector and in Node Properties. It has no action menu: View in the node inspector opens the Endpoint's page. It shows no monitoring state, because Endpoints have no Resources.
Never draw a Service as a Component: the Service is the Container_Boundary on its own L3 and a Container on the L2 and on other Services' L3s. A Component named after a Service matches no Endpoint and stays unbound.
Use ComponentDb for a repository or data-access step, as for Order Repository: it renders the database cylinder and shows the step's role as a data store.
Navigation From the L3
Section titled “Navigation From the L3”New 7.12 The pills are inferred when the diagram opens, inside the set, with nothing stored:
- The diagram offers Zoom out to the L2 of its scope, the Portal L2.
- INT1337-SND-Order-Incoming offers Inside (its own L3) once the set holds it.
- The diagram offers Related view to the Dynamics its subject takes part in, such as the O2C Dynamic.
See Navigation Between C4 Diagrams for every pill.
Next Steps
Section titled “ Next Steps”- Dynamic Diagram Example — The BPM's seven business steps across the four Systems
- Build the Order-to-Cash C4 set — Generate the other 13 L3s
- Order-to-Cash C4 Examples
- Import Your First C4 Diagram
Related Topics
Section titled “ Related Topics”- Example C4 Diagrams — Overview of all diagram types
- L2: Container Diagram Example — The L2 that holds this Service
- O2C Demo — C4 Architecture Diagrams — How the O2C log events map to C4 elements
- Navigation Between C4 Diagrams
- What is C4 Diagrams?