Context Map — Tutorial
This is the tutorial part of the Context Map — Strategic DDD guide. See also Short info and samples.
Before you begin
Section titled “Before you begin”Identify two areas with different business responsibilities or language. A single deployment can still contain both contexts.
Understand the model
Section titled “Understand the model”Find where a meaning changes
Section titled “Find where a meaning changes”A customer in Sales may mean a purchasing organization and its commercial relationship. A customer in Support may mean the person receiving assistance under an entitlement. The same label does not require one shared object with every possible property. A bounded context gives a model a place where its meaning is coherent.
A Context Map adds the relationship between these boundaries. It explains whether teams collaborate closely, accept an upstream model, maintain a shared subset or translate a provider’s concepts. Choosing a relationship is a decision about change and influence, as well as data exchange. Show who depends on whom and who can negotiate the agreement.
Review the cost of the relationship
Section titled “Review the cost of the relationship”Sharing a model can reduce translation but increase coordination. Translating through an anticorruption layer can protect local language at the cost of maintaining a mapping. Accepting a provider’s model may be sensible when the downstream team cannot influence it. Evaluate these consequences in the situation the teams actually face rather than ranking patterns as universally good or bad.
The map should survive changes in network topology when the strategic relationship remains the same. A context may be implemented by several services or by modules within one application. Connect technical contracts to SIM and internal aggregate behavior to DDD. These views answer related questions without forcing the strategic boundary to match every process, database or team box.
Visual walkthrough
Section titled “Visual walkthrough”One customer, two meanings. The word Customer splits into Sales and Support definitions; a relationship arrow appears; a translation boundary shows what crosses between them.
Pause and predict: Must the two contexts share the same customer object?
This is the text storyboard for a proposed short illustrated film. The written walkthrough and exercises are available now; a published movie will be added after its scenes, captions and model references have been reviewed.
Import / export
Section titled “Import / export”Context maps import from the Context Mapper DSL (CML subset — unknown constructs skip with a warning) and export back to CML, with the round-trip proven stable by the framework harness. The per-format toolkit applies: ctxbrew context-map validate|export|import|stats|diff. Details: Import & Export.
