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

Context mapping

In a large application designed for several bounded contexts, we can lose sight of the global view. It is inevitable that the various bounded contexts will need to share or communicate data between each other. A context map is a global view of the system as a whole, showing how our bounded contexts should communicate with each other.

Context map example

This is an oversimplified example that shows three bounded contexts and how they are mapped. In the product context, we have our product and the family that it belongs to. Here, we will have all the operations for this domain context in it and it does not have a direct relation dependency to any other context.

Our offers bounded context has a dependency on the product domain context, but this is a weak relation that should purely reflect the ID of the product that a particular offer belongs to. This context will define the operations that contain the domain logic for this context.

In our shopping bound context, we have a weak relation with the product that belongs to a shopping list and will have the operations for this context. Finally, both offers and shopping concept have a relation with the customer that probably belongs to a separated bounding context.

主站蜘蛛池模板: 普定县| 宜川县| 仁布县| 博爱县| 鱼台县| 乡城县| 花莲市| 子长县| 比如县| 中山市| 恩施市| 彰武县| 满洲里市| 花莲县| 湘潭市| 福清市| 慈溪市| 尼木县| 焦作市| 凤冈县| 板桥市| 武陟县| 隆昌县| 锡林郭勒盟| 乌拉特中旗| 内江市| 和龙市| 黔西县| 林州市| 噶尔县| 疏附县| 通山县| 墨竹工卡县| 新乡市| 纳雍县| 沙坪坝区| 西宁市| 大厂| 大方县| 美姑县| 平舆县|