V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
jasondennis12139
V2EX  ›  问与答

到底什么是 DDD?

  •  
  •   jasondennis12139 · Dec 30, 2021 · 1184 views
    This topic created in 1588 days ago, the information mentioned may be changed or developed.
    这两天公司准备推进 DDD 进入项目实践,
    学了半天,对领域,聚合根,值对象,实体稍微有一点认识
    但是对应用到实际工程中的代码结构还是一头雾水,最简单的,操作数据库的 Service 放在哪里,我都有点晕了
    有没有老哥能讲讲清楚的?
    1 replies    2022-01-17 11:22:35 +08:00
    hellereye
        1
    hellereye  
       Jan 17, 2022
    DDD 面向复杂业务,在 DDD 里操作数据库的不叫 Service ,而是 Repository ;定义在领域层,实现在基础设施层
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   958 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 22:19 · PVG 06:19 · LAX 15:19 · JFK 18:19
    ♥ Do have faith in what you're doing.