DevIQ
Bounded Context
Bounded Context
A bounded context is a concept from Domain-Driven Design that establishes boundary within a domain and contains models related to that context. The concepts, entities, value objects, and aggregates within the bounded context are written using a ubiquitous language. This language is also used in things such as documentation for the project and spoken throughout meetings on the project.
A domain may have multiple bounded contexts within its environment. Each bounded context may be maintained by a team. Context Mapping is used to help explain the relationships between two bounded contexts as well as indicate the relationship needed between the teams that maintain those two contexts.
eCommerce example of bounded contexts
When thinking of developing an online store, these are some of the boundaries that you may see:
- Product Management
- Order Management
- Customer Management
- Delivery Management
- Payment Processing
- Tax Management
References
- Domain analysis for microservices - Azure Architecture Center
- Martin Fowler's Bliki: BoundedContext
- Bounded Contexts - Eric Evans - DDD Europe 2020
- DDD Reference - Domain Language