Coder Social home page Coder Social logo

Comments (1)

louyanfeng25 avatar louyanfeng25 commented on June 22, 2024

1.setter不开放是为了聚合根属性的修改都是具有实际业务的(危险操作)。从根本上来看,getter方法可以开放出来的,因为它本身并不会修改聚合根的属性(安全行为)。
2.rpc层我的做法是依赖api层的,rpc只定义openFeign的格式与熔断相关配置。具体的接口定义,微服务传递的实体等都是放在api包中,统一定义。逻辑上跟你差不多,不过包的定位与依赖顺序与你相反,你可以看一下我另外common-frame的结构
3.我现在的做法上其实已经按照这种规范在处理,不过web-starter的包里面包含的东西比较多,我没有做拆分,细粒度太小也不是好事。我还是按照sdk的形式进行了包的依赖管理。
4.领域事件目前demo中已经提供了常见的业务使用场景的常规解决方案,你阅读后有什么好的想法欢迎提交pr给我。
感谢阅读,感谢支持~

from ddd-demo.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.