Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

项目架构是否是真正的领域驱动 #66

Open
zhanghailang123 opened this issue Jul 21, 2023 · 1 comment
Open

项目架构是否是真正的领域驱动 #66

zhanghailang123 opened this issue Jul 21, 2023 · 1 comment

Comments

@zhanghailang123
Copy link

zhanghailang123 commented Jul 21, 2023

马哥好,我看下下这个项目的架构,有点疑问,对于DDD的理解不知是否有偏差
1.没有领域充血模型的提现

每个模块的domain层聚合根都是单纯的贫血模型实体,并没有承载领域的实际行为

2.仓储层是否承担了过多的业务逻辑

我理解仓储层不应有过重的业务逻辑,只应有对数据库的crud

@ByteByteBrew
Copy link

ByteByteBrew commented Jun 25, 2024

马哥好,我看下下这个项目的架构,有点疑问,对于DDD的理解不知是否有偏差

1.没有领域充血模型的提现

每个模块的domain层聚合根都是单纯的贫血模型实体,并没有承载领域的实际行为

2.仓储层是否承担了过多的业务逻辑

我理解仓储层不应有过重的业务逻辑,只应有对数据库的crud

仅仅只算是cqrs而且cqrs得部分也不完整 aggregate也仅仅是个虚壳 而且业务还是一堆service事务脚本 综上不算

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants