官术网_书友最值得收藏!

Bounded context

A domain model is a conceptual model of a business domain that formalizes its behavior and data. A single unified domain model tends to grow in complexity with business capabilities and increases the collaboration overhead among the team due to high coupling. To reduce coupling, domain-driven design recommends defining a model for each business capability with a well-defined boundary to separate the domain concepts within the model from the ones outside. Each such model then focuses on the behavior and data confined to a single business capability, and thus gets bounded by a single application context, called a bounded context. Monolithic applications tend to have a unified domain model for the entire business domain, whereas for microservices, domain models are defined for each identified bounded context.

For example, instead of defining a single unified domain model for an e-commerce application, it is better to divide the application into bounded contexts of Customer, Sales, and Marketing and define a domain model for each of these contexts, as shown in the preceding diagram. Such focused domain models can then conquer each context based on business capabilities. For example, Customer Context can focus only on user and profile management, Sales Context can handle orders and transactions, and Marketing Context can keep track of user interests for focused marketing.

主站蜘蛛池模板: 公安县| 通化市| 威信县| 铅山县| 金门县| 庄浪县| 资源县| 东至县| 双辽市| 阳江市| 喀喇沁旗| 鸡泽县| 金沙县| 巴林左旗| 陆河县| 台北市| 响水县| 梅州市| 通州市| 微山县| 怀仁县| 岗巴县| 广安市| 临邑县| 东城区| 南岸区| 余江县| 合作市| 上高县| 南开区| 韶关市| 独山县| 长汀县| 浦北县| 平江县| 丹寨县| 庐江县| 嘉黎县| 綦江县| 通山县| 阜新市|