Coder Social home page Coder Social logo

ddd-demo's Issues

博主,您好

博主您好,我在掘金看了您写的DDD文章并发现了demo,非常精彩,不过我在对比文章中的工程结构和demo的工程结构发现有些地方对不上,比如domain下并没有adapter,还有聚合根在domain中也是没有的,一点点有疑惑,还望您不要介意,特别感谢您能给出这么好的案例让我们学习。

关于UserApplicationService craete和updateUserName疑问

博主,您好,最近看了下代码,有个不是很懂的地方还请麻烦指教下
UserApplicationService 里面有craete和updateUserName,为什么create 会用到UserCreateAbility去做业务处理,而updateUserName不需要用Ability

我们之间DDD的不同之处

我也在探索DDD的一种架构我发现我们之间大致是一致的架构 不过有略微的差别, 特此来讨论一下。
1.我在书中看到domain实体的属性不对外提供getter/setter方法, 只在构造时成立,在构造时通过调用内部private的 set方法来校验参数。(由于在基础层需要把 do 对象转为po对象, 我还是提供了getter方法,目前不知道有什么更好的方案)
2.我把vo与feignclient 提出单独的 rpc层 ,由 api层引用 , 这样可能对我后续微服务组成 引入的代价较小, 以及方便异构服务。
3.我设想是否引入 spring-boot时 应该 按模块引入, 比如 domain模块只引入 依赖导致需要的模块 , api模块引入web模块 (但是还没实现)
4.在领域事件这方面我还没有实现,想要参考您的代码。
以上, 感谢您的阅读,期待您的回复。

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.