Is the Controller in MVC considered an application service for DDD?

后端 未结 4 1453
春和景丽
春和景丽 2020-12-14 02:10

I am applying DDD for the M part of my MVC and after some research (studying up!), I have come to the realization that I need my controller to be interacting with domain ser

4条回答
  •  无人及你
    2020-12-14 02:49

    A Layered Architecture splits the application up into UI-Layer, App-Layer, Domain Layer and Infrastructure Layer (Vaugn Vernons Implementing Domain-Driven Design (location 2901)). The controller falls in "Application Layer" of this broader design architecture and will therefore interact directly with the domain services in the model and is considered an application service. Not only that, it'll will obviously also use the entities and aggregates as available.

提交回复
热议问题