.NET Architecture & System Design Interview Question #107
What is a bounded context and why is it useful for service boundaries?
Microservices, API Gateway, Service Communication & Event-Driven Architecture Mid-Level Intermediate
Quick Interview Answer
A bounded context is a Domain-Driven Design boundary within which a domain model and its terminology have a specific meaning. The same real-world concept may be modeled differently in another context.
Detailed Explanation
A bounded context is a Domain-Driven Design boundary within which a domain model and its terminology have a specific meaning. The same real-world concept may be modeled differently in another context.
Bounded contexts are useful candidates for service or module boundaries because they clarify ownership and reduce the need for one shared enterprise-wide model. They are a design aid, not a rule that every bounded context must become a microservice.
Code Example
Sales Context:
Customer = buyer information
Support Context:
Customer = contact + support history
Same term, different model/boundary.