- Hands-On Microservices with Kotlin
- Juan Antonio Medina Iglesias
- 169字
- 2021-06-30 19:10:43
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.
- Modular Programming with Python
- 解構(gòu)產(chǎn)品經(jīng)理:互聯(lián)網(wǎng)產(chǎn)品策劃入門寶典
- Full-Stack React Projects
- SQL基礎教程(視頻教學版)
- 深入淺出PostgreSQL
- Node Cookbook(Second Edition)
- 詳解MATLAB圖形繪制技術(shù)
- Kubernetes源碼剖析
- Django實戰(zhàn):Python Web典型模塊與項目開發(fā)
- MINECRAFT編程:使用Python語言玩轉(zhuǎn)我的世界
- OpenCV 3 Blueprints
- Fastdata Processing with Spark
- 并行編程方法與優(yōu)化實踐
- Instant GLEW
- PHP程序設計高級教程