Skip to content
Documentation
Updated 6 minutes to read
Markdown

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.

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

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.

  • ✅ 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

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

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.

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.

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...