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

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.

主站蜘蛛池模板: 石柱| 台北县| 鲁甸县| 仲巴县| 密云县| 通河县| 汕尾市| 宜阳县| 平塘县| 谢通门县| 迁安市| 方山县| 肃北| 玉溪市| 揭阳市| 巢湖市| 察隅县| 汤阴县| 景泰县| 防城港市| 屏南县| 景东| 绥宁县| 盖州市| 从江县| 海安县| 台东县| 禹州市| 渝北区| 循化| 成都市| 永川市| 个旧市| 连山| 荃湾区| 澜沧| 曲沃县| 鹤岗市| 卓资县| 台州市| 长葛市|