DDD
概念:
界定上下文 Context
聚合根 Aggreate
实体对象、值对象 Entity 、Value Object
领域事件 domain event
资源库Respositiry
领域服务Service
Command (写)
Representation (读)
读:
- 基于领域模型的读操作
- 基于数据模型的读操作
- CQRS
写:
应用服务 -> 聚合根 -> 资源库
DDD的基本方法:
DDD代码结构:
ref
https://insights.thoughtworks.cn/backend-development-ddd/
demo
https://github.com/e-commerce-sample/order-backend
https://insights.thoughtworks.cn/ddd-architecture-design/