Skip to main content
InterviewHubPRO
Section Overview
Q14

Question 14 of 50

Part 2: Core Architecture & Implementation (Mid-Level)

28%
Domain-Driven Design (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)

What are Context Maps and the standard Context Relationships?

senior LevelCode ExampleSystem Design

In Simple Words: A Context Map visualizes the structural and political relationships between different Bounded Contexts in an enterprise:

  • Shared Kernel: Two contexts share a common core domain model and database subset (requires tight coordination).
  • Customer / Supplier (Upstream / Downstream - U/D): Upstream ($U$) provides data; Downstream ($D$) consumes it. Downstream requirements influence Upstream delivery.
  • Conformist: Downstream conforms strictly to Upstream's model without negotiation.
  • Anti-Corruption Layer (ACL): Downstream builds a translation layer to insulate itself from an archaic Upstream model.
  • Open Host Service (OHS) / Published Language (PL): Upstream provides a standardized public API (e.g. REST/JSON or Protobuf) for multiple consumers.
text
Context Mapping Relationships:
[Billing Context (Upstream - U)] ──(Open Host Service)──► [Anti-Corruption Layer] ──► [Mobile App (Downstream - D)]