- DDD
- Hexagonal Architecture
- the company domain is
macdao.com - the project code is
ecommerce - the bounded context name is
order
本章节描述细节。
因为公司/组织域名是macdao.com,而项目名称是ecommerce,所以项目的包名是com.macdao.ecommerce。
限界上下文应该有独立包。我们以context名称来表示限界上下文的包。比如com.macdao.ecommerce.context表示是限界上下文(领域模型)的包。与此对应的是Web的BFF的包:com.macdao.ecommerce.web.bff和OpenAPI的API Gateway的包:com.macdao.ecommerce.openapi.apigateway。
订单上下文的包为com.macdao.ecommerce.context.order,支付上下文的包为com.macdao.ecommerce.context.payment。
domain.model.order
application
mysql, api
src/main/resources/db/migration
数据库,表,字段
- contract test
- deps mock server
- unit
- combo adapter
- multi context in one service