Bounded Context
Last Updated on Sep 28, 2022
A Bounded Context in DDD is part of the solution space and maps to a subdomain. While ideally, a bounded context and a subdomain map one-to-one, legacy systems, technical debt, and third-party integrations often create exceptions.
Bounded Contexts are implementations of Subdomains and include the inputs, outputs, events, requirements, processes, and data models relevant to the subdomain.
If using a Microservices architectural pattern, the implementation details of a Bounded Context are enclosed within a single microservice.
Bounded Contexts should be highly cohesive. The internal operations of the context should be closely related, with the vast majority of communications occurring within the Bounded Context rather than cross-boundary.