In Domain-Driven Design (DDD), a Bounded Context is a central concept that helps in managing complexity within a large system. It defines a clear boundary within which a particular domain model is defined and applicable. Within this boundary, a specific domain or subdomain’s concepts, rules, and logic are consistent and well understood.
Key aspects of Bounded Context:
Communication Between Contexts
Since each bounded context is self-contained, there is often a need to communicate or integrate between them. This is typically done through well-defined interfaces, APIs, or translation layers. This interaction is carefully managed to avoid mixing the models and their meanings.
Ubiquitous Language within the Context
Inside a bounded context, the team uses a shared language (ubiquitous language) that is understood by both developers and domain experts. This language aligns with the business domain and helps bridge the gap between technical and non-technical team members.