C4 — Samples
These are the samples for the C4 — Architecture Model guide. See also Short info and the tutorial.
Worked example
Section titled “Worked example”Explain the system to a new support engineer.
- Show Traveler → Booking System → Payment Provider as a context view and label each relationship.
- Open Booking System in a second view containing Web App, Booking API and Database.
- Keep the payment provider outside the system boundary.
- Describe the same Booking API consistently wherever it appears.
The reader should be able to name the system boundary and major responsibilities. The diagram makes no claim that the deployment is healthy or that a payment integration passed its tests.
Practice examples
Section titled “Practice examples”These four exercises are lesson briefs. Their dedicated CtxBazaar recipes and browser launch actions are planned; see Learning with models for available downloads and the meaning of each result.
| Exercise | Try this | Expected observation |
|---|---|---|
| System context | Place a traveler, Booking System and external payment system in one context view. | A reader can identify scope and outside dependencies. |
| Container view | Expand Booking System into a web app, API and database. | The view stays at container level and names each relationship’s purpose. |
| Component boundary | Expand only the API into meaningful internal components. | Internal detail does not leak into the higher-level context view. |
| Two views, one element | Show the same API in an overview and a focused integration view. | A model change is understood as one element appearing in multiple views. |
