Domain-Driven Design (50 Qs)•Part 3: Advanced Architecture & Production Patterns (Senior / Lead)
Context Mapping Patterns: Relationships between Bounded Contexts.
senior LevelSystem Design
In Simple Words: How different teams and systems integrate across context boundaries:
- Shared Kernel: Two teams share a small common subset of code and database tables. High coordination required.
- Partnership: Two teams succeed or fail together; features are planned jointly.
- Customer-Supplier: Upstream (Supplier) builds what Downstream (Customer) requires.
- Conformist: Downstream adopts the upstream model as-is without translation (e.g., integrating with a dominant payment provider).
- Anti-Corruption Layer (ACL): Downstream translates upstream concepts into its own clean domain model, isolating itself from messy external changes.
- Separate Ways: Teams choose not to integrate because the cost of integration exceeds the value.