---
title: L3 Component Diagram Example | Nodinite C4 Diagrams
description: "L3 Component example built on the Order-to-Cash demo data: the inside of the Service INT1337-RCV-Order-Incoming, with its Endpoint and three unbound steps, and the next Service outside. Copy-paste Mermaid markup, scope and subject taken from the markup, and what each element binds to."
---

# <i class="fal fa-cube" aria-hidden="true"></i> L3 Component Diagram Example

The L3 Component diagram zooms into **one [Service][Services] or [Contract][Contracts]** 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.

<sup><span class="nodinite-new-badge">New 7.12</span></sup> An L3 has two settings. Its [Architectural Scope][Diagram Set Fundamentals] is the [System][Systems] 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][Hub]. See [Example C4 Diagrams][] for an overview of all diagram types and when to use each.

![The L3 Component diagram of INT1337-RCV-Order-Incoming: inside the Service boundary its Endpoint Portal-OrderReceived-Drop and the steps the order takes, the Component bound to the Endpoint of that name, the inspector naming the Endpoint, View opening the Endpoint's own Repository page, then the breadcrumb back to the Diagram Set and the L1 Context opened again, animated walkthrough (7.12)][Hero]  
*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.*  

<aside aria-label="Info" class="nodinite-note nodinite-note--info">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-square-info"></i> Info</p>
<div class="nodinite-note__content"><p><strong>To use this example in <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>,</strong> copy the Mermaid markup below and follow the <a href="https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/import-your-first-c4-diagram/">Import Your First C4 Diagram</a> walkthrough to create a <a href="https://docs.nodinite.com/repository-model/c4-diagrams/features/what-is-a-c4-diagram-set/">C4 Diagram Set</a> and <a href="https://docs.nodinite.com/repository-model/c4-diagrams/features/import/">import</a> the markup. <sup><span class="nodinite-new-badge">New 7.12</span></sup> The <code>Container_Boundary</code> binds to the Service, the Components bind to the Service's Endpoints or stay unbound, and the neighbouring Container binds to its Service. Nothing is created as an <a href="https://docs.nodinite.com/repository-model/integrations/overview/">Integration</a>: Integrations are not C4 elements.</p></div>
</aside>

## 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) |

<sup><span class="nodinite-new-badge">New 7.12</span></sup> 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**.

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p>Do not rename the O2C Repository identities that the <a href="https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/generate-o2c-demo-data/">O2C demo data generator</a> creates from log events. The Component <code>Portal-OrderReceived-Drop</code> binds only because it has exactly the name of the Service's Endpoint.</p></div>
</aside>

## 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

This example uses the [Order-to-Cash (O2C) demo][O2C Overview] 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.

<table>
<tr>
<th><i class="fal fa-eye" aria-hidden="true"></i> Preview</th>
<th><i class="fal fa-code" aria-hidden="true"></i> Mermaid Code</th>
</tr>
<tr>
<td>

```mermaid
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")
```

</td>
<td>

```text
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")
```

</td>
</tr>
</table>

## What Each Element Binds To

| Markup element | Macro | Binds to | Status in Review & Resolve |
|---|---|---|---|
| INT1337-RCV-Order-Incoming | `Container_Boundary` | The [Service][Services] of the same name: the diagram's subject | Matched, on the row *Subject of the Component diagram* |
| Portal-OrderReceived-Drop | `Component` | <sup><span class="nodinite-new-badge">New 7.12</span></sup> The [Endpoint][Endpoints] of exactly that name | Matched |
| Order Validator, Deduplication Guard | `Component` | Nothing: steps inside the [Service][Services] | Unbound |
| Order Repository | `ComponentDb` | Nothing: a step inside the [Service][Services] | Unbound |
| INT1337-SND-Order-Incoming | `Container_Ext` | The [Service][Services] of the same name | Matched |
| Customer | `Person` | A [System][Systems] 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 | <sup><span class="nodinite-new-badge">New 7.12</span></sup> The [Message Type][Message Types] of exactly that name | Resolved |

### Components on an L3

<sup><span class="nodinite-new-badge">New 7.12</span></sup> 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][Component Types] 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

<sup><span class="nodinite-new-badge">New 7.12</span></sup> 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][L2 Example].  
* **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][Dynamic Example].  

See [Navigation Between C4 Diagrams][] for every pill.

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-random" aria-hidden="true"></i> [Dynamic Diagram Example][Dynamic Example] — The BPM's seven business steps across the four Systems  
* <i class="fal fa-hammer" aria-hidden="true"></i> [Build the Order-to-Cash C4 set][] — Generate the other 13 L3s  
* <i class="fal fa-book" aria-hidden="true"></i> [Order-to-Cash C4 Examples][Hub]  
* <i class="fal fa-upload" aria-hidden="true"></i> [Import Your First C4 Diagram][]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-book" aria-hidden="true"></i> [Example C4 Diagrams][] — Overview of all diagram types  
* <i class="fal fa-container-storage" aria-hidden="true"></i> [L2: Container Diagram Example][L2 Example] — The L2 that holds this Service  
* <i class="fal fa-diagram-project" aria-hidden="true"></i> [O2C Demo — C4 Architecture Diagrams][O2C C4 Diagrams] — How the O2C log events map to C4 elements  
* <i class="fal fa-compass" aria-hidden="true"></i> [Navigation Between C4 Diagrams][]  
* <i class="fal fa-compass" aria-hidden="true"></i> [What is C4 Diagrams?][What is C4 Diagrams?]  

[Build the Order-to-Cash C4 set]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/order-to-cash/build-the-order-to-cash-c4-set/
[Component Types]:https://docs.nodinite.com/repository-model/component-types/overview/
[Contracts]:https://docs.nodinite.com/getting-started/repository/contracts/overview/
[Diagram Set Fundamentals]:https://docs.nodinite.com/repository-model/c4-diagrams/features/diagram-set-fundamentals/
[Dynamic Example]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/order-to-cash/dynamic-diagram-example/
[Endpoints]:https://docs.nodinite.com/repository-model/endpoints/overview/
[Example C4 Diagrams]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/example-c4-diagrams/
[Generate O2C Demo Data]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/generate-o2c-demo-data/
[Hero]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Repository/C4/C4_O2C_L3Component.gif
[Hub]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/order-to-cash/overview/
[Import]:https://docs.nodinite.com/repository-model/c4-diagrams/features/import/
[Import Your First C4 Diagram]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/import-your-first-c4-diagram/
[Integrations]:https://docs.nodinite.com/repository-model/integrations/overview/
[L2 Example]:https://docs.nodinite.com/repository-model/c4-diagrams/getting-started/examples/order-to-cash/l2-container-diagram-example/
[Message Types]:https://docs.nodinite.com/repository-model/message-types/overview/
[Navigation Between C4 Diagrams]:https://docs.nodinite.com/repository-model/c4-diagrams/features/sync/
[O2C C4 Diagrams]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/o2c-c4-diagrams/
[O2C Overview]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/overview/
[Resources]:https://docs.nodinite.com/administration/monitor-management/resources/features/what-is-a-resource/
[Services]:https://docs.nodinite.com/repository-model/services/overview/
[Systems]:https://docs.nodinite.com/repository-model/systems/overview/
[What is a C4 Diagram Set?]:https://docs.nodinite.com/repository-model/c4-diagrams/features/what-is-a-c4-diagram-set/
[What is C4 Diagrams?]:https://docs.nodinite.com/repository-model/c4-diagrams/features/what-is-c4-diagrams/