How to avoid anemic domain models, or when to move methods from the entities into services

前端 未结 5 1037
悲&欢浪女
悲&欢浪女 2021-01-29 22:19

I have a common scenario that I am looking for some guidance from people more experienced with DDD and Domain Modeling in general.

Say I start out building a blog engine

5条回答
  •  失恋的感觉
    2021-01-29 22:44

    I think whenever the domain expert uses the word "when" one must consider Domain Events or an event bus, this was a classic example in that sense.

    I have written a detailed answer which describes when to use event buses, it might be a good read around this topic

提交回复
热议问题