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

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.

主站蜘蛛池模板: 宜章县| 临江市| 达州市| 田阳县| 高雄市| 沭阳县| 齐河县| 广丰县| 沂源县| 吉安县| 祁门县| 双城市| 舒兰市| 肥乡县| 南和县| 肥乡县| 含山县| 察哈| 寿阳县| 百色市| 缙云县| 芒康县| 册亨县| 秭归县| 内丘县| 肇庆市| 壶关县| 岳池县| 麦盖提县| 兴宁市| 崇文区| 海兴县| 鄂尔多斯市| 根河市| 南宁市| 紫金县| 陇川县| 沁阳市| 留坝县| 方山县| 明光市|