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

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.

主站蜘蛛池模板: 当涂县| 明光市| 青海省| 大冶市| 丰城市| 花莲市| 阿瓦提县| 东城区| 大姚县| 陆丰市| 宜昌市| 调兵山市| 瑞丽市| 正安县| 英山县| 鄂伦春自治旗| 连云港市| 巴马| 汤阴县| 新营市| 太和县| 上栗县| 攀枝花市| 吴堡县| 二手房| 平阴县| 綦江县| 宝丰县| 紫金县| 台山市| 江永县| 万宁市| 贡觉县| 昭觉县| 佛冈县| 临清市| 盱眙县| 肇东市| 宁化县| 丰镇市| 法库县|