Files
antigravity-skills-reference/skills/ddd-context-mapping/references/context-map-patterns.md
2026-02-19 14:52:50 +00:00

26 lines
673 B
Markdown

# Context Mapping Patterns
## Common relationship patterns
- Partnership
- Shared Kernel
- Customer-Supplier
- Conformist
- Anti-Corruption Layer
- Open Host Service
- Published Language
## Mapping template
| Upstream context | Downstream context | Pattern | Contract owner | Translation needed |
| --- | --- | --- | --- | --- |
| Billing | Checkout | Customer-Supplier | Billing | Yes |
| Identity | Checkout | Conformist | Identity | No |
## ACL checklist
- Define canonical domain model for receiving context.
- Translate external terms into local ubiquitous language.
- Keep ACL code at boundary, not inside domain core.
- Add contract tests for mapped behavior.