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

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.

主站蜘蛛池模板: 微山县| 凉城县| 峡江县| 盐边县| 晋宁县| 且末县| 望都县| 安平县| 枣阳市| 蕉岭县| 大足县| 遂昌县| 行唐县| 玉屏| 日喀则市| 大冶市| 大庆市| 若羌县| 塘沽区| 临高县| 北川| 婺源县| 贵南县| 梅河口市| 康乐县| 怀远县| 永登县| 晋江市| 仲巴县| 西乌珠穆沁旗| 安国市| 达拉特旗| 德钦县| 桓仁| 汪清县| 宁陕县| 贺州市| 澳门| 沙洋县| 泉州市| 嵊泗县|