Day 5Level 1 β Core Mental Models
C4 Modelling: Context, Containers, Components, Code
Learn: 45 minMap: 30 minDesign: 60 min
Core Concepts (5)
- 1.C4 gives you 4 zoom levels: System Context β Containers β Components β Code
- 2.Context diagram: who uses it, what external systems touch it
- 3.Container diagram: deployable units (services, databases, queues, SPAs)
- 4.Component diagram: internal structure of a container (modules, classes)
- 5.Diagrams as code (Mermaid/Structurizr) = versionable, reviewable, diffable
Map to Your Experience
Draw the Context and Container diagrams for your system. What external systems did you miss on first pass?
Design Brief: C4 Context & Container Diagrams
Requirements
- β’Context diagram shows all actors and external systems
- β’Container diagram shows all deployable units
- β’Technology choices labelled on each container
- β’Data flows and protocols indicated
- β’Rendered as Mermaid (text-based)
Constraints
- β’Mermaid syntax only β no drag-and-drop tools
- β’Must be valid C4 notation
Must Cover
context-diagramcontainer-diagramtechnology-labelsdata-flows
Trade-off Axis
diagram detail vs maintenance burden
Referenced Patterns
Competencies Advanced
distribution communication β L2requirements constraints β L2
Ready to Design?
Open this day in the Design Studio. The studio follows this track: its days, concepts, patterns and trade-offs are loaded, and you keep one design across the whole track.
Open in Studio β