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

Bounded context

When a domain model grows, it becomes complicated to have a unified domain model. Sometimes, we face a situation when we see two different representations of a concept, for example, let's examine the concept of family in a large model.

In a shopping platform, we may have the concept of products families, for example, our fabulous 32" LCD screen and the classical 24" CRT screen are part of the screen family. On the other hand, our speed offers and last day offers are part of our limited timed-offer family.

We could see that family may not be exactly the same thing on products and offers, probably they both have a unique name on their model, but in each context they may have a totally different model and logic.

In DDD, we separated them in to bounded contexts, a boundary that surrounds a model. This keeps the knowledge inside the boundary consistent, ignoring the outside world so we could still have our ubiquitous language for our domain model.

主站蜘蛛池模板: 吴江市| 封丘县| 谷城县| 新邵县| 双城市| 扎囊县| 丰镇市| 疏勒县| 泰州市| 灵山县| 汽车| 东明县| 宁强县| 波密县| 旅游| 迁安市| 镇赉县| 阿拉尔市| 建昌县| 淄博市| 绥江县| 镇远县| 临夏县| 黄大仙区| 斗六市| 彭州市| 安远县| 嵊泗县| 五华县| 嘉祥县| 兰西县| 神池县| 陕西省| 福鼎市| 象山县| 扎鲁特旗| 大埔区| 海门市| 富民县| 淳安县| 泸州市|