Comments (1)
1.setter不开放是为了聚合根属性的修改都是具有实际业务的(危险操作)。从根本上来看,getter方法可以开放出来的,因为它本身并不会修改聚合根的属性(安全行为)。
2.rpc层我的做法是依赖api层的,rpc只定义openFeign的格式与熔断相关配置。具体的接口定义,微服务传递的实体等都是放在api包中,统一定义。逻辑上跟你差不多,不过包的定位与依赖顺序与你相反,你可以看一下我另外common-frame的结构
3.我现在的做法上其实已经按照这种规范在处理,不过web-starter的包里面包含的东西比较多,我没有做拆分,细粒度太小也不是好事。我还是按照sdk的形式进行了包的依赖管理。
4.领域事件目前demo中已经提供了常见的业务使用场景的常规解决方案,你阅读后有什么好的想法欢迎提交pr给我。
感谢阅读,感谢支持~
from ddd-demo.
Related Issues (5)
- 博主,您好 HOT 1
- 需要调整的地方 HOT 1
- 那个防腐 UserInterface 到底要怎么实现落地,能给个示例吗? HOT 1
- 关于UserApplicationService craete和updateUserName疑问 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ddd-demo.