SOLID & Design Patterns Interview Question #78

What is a Context Map in Domain-Driven Design?

DDD Boundaries, Resilience, Caching & Practical ASP.NET Core Design Mid-Level Intermediate

Quick Interview Answer

A Context Map documents the relationships and integration boundaries between bounded contexts. It helps teams understand which context owns which model and how information flows between them.

Detailed Explanation

A Context Map documents the relationships and integration boundaries between bounded contexts. It helps teams understand which context owns which model and how information flows between them.

The map can identify relationships such as upstream/downstream dependencies, shared kernels, anti-corruption layers, or published contracts. Its purpose is architectural clarity rather than creating another runtime component.

Code Example

Sales Context
      |
      | OrderPlaced contract
      v
Billing Context
      |
      | PaymentConfirmed contract
      v
Shipping Context