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

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.

主站蜘蛛池模板: 家居| 浦北县| 平山县| 桂林市| 屯门区| 麻栗坡县| 康马县| 济阳县| 会昌县| 化德县| 罗城| 大足县| 遂平县| 张北县| 镇雄县| 闽侯县| 新巴尔虎左旗| 望奎县| 陇川县| 舞阳县| 左权县| 建水县| 莎车县| 大田县| 陆川县| 乐亭县| 宁阳县| 临洮县| 平泉县| 涟水县| 忻城县| 德州市| 三穗县| 保亭| 安泽县| 四平市| 大庆市| 高阳县| 大同县| 门源| 公主岭市|