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

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.

主站蜘蛛池模板: 休宁县| 罗江县| 册亨县| 竹山县| 二手房| 荆州市| 崇州市| 昌黎县| 海伦市| 金坛市| 阳春市| 敖汉旗| 常熟市| 扬中市| 唐海县| 葵青区| 湘西| 贺兰县| 南投市| 镇安县| 梓潼县| 竹溪县| 寿阳县| 瑞昌市| 华阴市| 温宿县| 水城县| 湘潭市| 壶关县| 盐城市| 通化市| 于田县| 湖口县| 灵台县| 禹城市| 和田县| 庆元县| 兴安县| 平泉县| 鲁山县| 黎平县|