CM0 · Context Mapping
Context Mapping Intro
See the Relationships Your Architecture Diagram Hides

Overview
Your architecture diagram shows boxes and arrows. Context mapping shows something far more important: how those boxes actually relate to each other politically, technically, and organizationally.
A context map is a strategic tool from Domain-Driven Design that makes explicit the relationships between bounded contexts (systems, services, teams). It answers questions your deployment diagram never will: Who depends on whom? Who has the power? Who needs protection?
When to use
- Starting a new integration between systems
- Onboarding someone to a complex system landscape
- Architecture reviews and health checks
- Before making build-vs-buy decisions
- When teams are struggling with cross-system coordination
Quick assessment
- Can you name the upstream and downstream for each of your integrations?
- Do you know which of your integrations have an anticorruption layer?
- When an external system changes its API, how many of your systems break?
- Are your team boundaries aligned with your context boundaries?
In practice
How it works
Make it work
Name each context and owner. Label the relationship and direction, then agree how changes and migrations are handled.
The trade-off
A deployment map alone misses power and coordination. Update relationships as ownership changes.
Who depends on whom, and who can influence change?
Key patterns
The Nine Relationship Types:
- CM1 Partnership — Mutual success, coordinated evolution
- CM2 Customer-Supplier — Upstream provides what downstream needs
- CM3 Conformist — Downstream accepts upstream's model as-is
- CM4 Anticorruption Layer — Downstream translates to protect itself
- CM5 Open Host Service — Provider exposes a well-defined protocol
- CM6 Published Language — Shared schema for communication
- CM7 Shared Kernel — Small shared model, jointly maintained
- CM8 Separate Ways — No integration, independent paths
- CM9 Big Ball of Mud — Legacy boundary, unclear ownership
Arrow Direction Convention: Arrows on the context map flow from upstream (provider) to downstream (consumer). This shows the direction of data/influence flow. The downstream system depends on and consumes from the upstream — but the arrow points toward the consumer, not away from it. Think of it as "data flows this way."
Counter-patterns
- Drawing context maps that are just deployment diagrams
- Ignoring the political/organizational dimension
- Assuming all relationships are symmetric
- Not updating the map as relationships evolve
Reality check
Context maps are living documents. The moment you finish drawing one, something has already changed. The value isn't in the artifact — it's in the conversation it forces your team to have about who depends on whom, and what happens when things change.