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

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.

主站蜘蛛池模板: 赤峰市| 通河县| 弥勒县| 湄潭县| 霸州市| 辽中县| 浦江县| 运城市| 介休市| 榆社县| 大关县| 雅江县| 广南县| 青河县| 水城县| 廉江市| 阜新市| 丽江市| 团风县| 团风县| 吕梁市| 万州区| 铜梁县| 林口县| 布尔津县| 庆云县| 蒙自县| 海原县| 崇仁县| 莒南县| 若羌县| 柳河县| 呼和浩特市| 墨脱县| 仙居县| 芦溪县| 阳春市| 三原县| 阿图什市| 石嘴山市| 阿克陶县|