C4 architecture
One ordering architecture, four views
Keep the same Ordering platform, people and systems as you move from the ecosystem into the Web API.
Your editor remains in its original tab. Return opens your saved work here; edited copies are preserved.
The ordering ecosystem
Begin with the systems and people around order processing.
When is this useful?
Use Landscape to place the ordering platform in its wider environment.
Read the example
This walkthrough describes the original catalogue example; your own document may differ.
See the wider environment
Customer uses Ordering platform. Inventory system, Payment provider, Shipping service, Analytics platform and Warehouse team establish the wider ecosystem.
Separate payment from fulfilment
Payment provider reports payment outcomes to Ordering platform. Ordering reserves stock and releases paid orders to Inventory system, which books deliveries with Shipping service. A failed payment does not release the order for fulfilment; Payment does not notify Shipping directly. The compact preview omits warehouse and shipping systems.
Keep the level broad
Each system has its own responsibility. This view does not expose applications or components inside Ordering platform.
Open C4 · Landscape exampleMake one small change
Open Landscape, inspect a system responsibility, then switch to Context in the same document.
One ordering system in its surroundings
Focus on the people and external systems directly involved.
When is this useful?
Use Context to establish one software system boundary before discussing its internals.
Read the example
This walkthrough describes the original catalogue example; your own document may differ.
Focus on Ordering platform
Customer interacts with Ordering platform. Inventory system and Payment provider are external integrations at this level.
Follow the same identity inward
Ordering platform is the same shared element used as the scope of the Container view. Changing its name in the shared example affects every view where it appears.
Open C4 · Context exampleMake one small change
Open Context, inspect Ordering platform, then switch to Containers in the sidebar.
Applications and data stores
Look inside Ordering platform at the main technical responsibilities.
When is this useful?
Use Containers to show applications, data stores and their communication.
Read the example
This walkthrough describes the original catalogue example; your own document may differ.
Follow an order
Web application calls Web API. The API coordinates with Inventory system and Payment provider and stores orders in Order database.
See background work
Receipt worker performs background work. These are applications and data stores; container here does not mean a Docker container.
Open C4 · Container exampleMake one small change
Open Containers, select Web API and inspect its responsibility. Switch to Components to look inside that same API.
Inside the Web API
Examine the parts that coordinate an order and its integrations.
When is this useful?
Use Components when the audience needs to understand responsibilities inside one application.
Read the example
This walkthrough describes the original catalogue example; your own document may differ.
Follow the API components
Order controller and Order service coordinate Inventory client and Payment client. These components belong inside the Web API scope.
Read supporting dependencies
Order database, Receipt worker, Inventory system and Payment provider show what work continues outside the API boundary.
Open C4 · Component exampleMake one small change
Open Components, inspect Order service, then switch back to Containers to see its containing Web API.
These four views belong to the same Ordering project. Use the editor sidebar to switch levels. For publication, use View → Document Views to assemble a briefing, then File → Advanced exports → Export Document View.