Contents
What is a bounded context in microservices?
In the context of Microservices, it means one simple thing: a Bounded Context is the exact opposite of a Microservice! A Bounded Context defines the boundaries of the biggest services possible: services that won’t have any conflicting models inside of them.
How do you define bounded contexts?
Bounded context is a logical boundary Bounded context defines tangible boundaries of applicability of some sub-domain. It is an area where a certain sub-domain makes sense, while the others don’t. It can be a talk, a presentation, a code project with physical boundaries defined by the artifact.
How do you know if context is bounded?
To identify bounded contexts, you can use a DDD pattern called the Context Mapping pattern. With Context Mapping, you identify the various contexts in the application and their boundaries. It’s common to have a different context and boundary for each small subsystem, for instance.
Can a microservice span more than one bounded context?
In general, the functionality in a microservice should not span more than one bounded context. By definition, a bounded context marks the boundary of a particular domain model. If you find that a microservice mixes different domain models together, that’s a sign that you may need to go back and refine your domain analysis.
How to identify the boundaries of a microservice?
Start with a bounded context. In general, the functionality in a microservice should not span more than one bounded context. By definition, a bounded context marks the boundary of a particular domain model.
Why do we need to understand bounded context?
As used by Evans, the Bounded Context is as much an organizational pattern as it is a technical one. That’s why I’ve come to view the Bounded Context pattern as a lynchpin in understanding microservices.
How is bounded context used in DDD application?
DDD is explained in another article. This is where an application is partitioned into services where each aligns with a particular business domain. According to Vadim Samokhin, bounded context is a logical boundary. It defines some tangible boundary between sub-domains.