Domain objects/services and the Business Logic Layer

后端 未结 4 1566
-上瘾入骨i
-上瘾入骨i 2020-12-12 15:28

What are domain objects and domain services in software architecture? I am not familiar with them or how they differ from the business logic layer?

4条回答
  •  悲哀的现实
    2020-12-12 15:35

    We need to understand the responsibilities of the application layer and the domain (business) layer to be able to grasp the difference. The domain layer is representing the business objects, mainly entities from the business, possibly abstracted to some degree, and domain services. The domain layer only changes when the business changes or the context of the domain changes within the business. The application layer "lives" on top of the domain layer and is often (preferably) separated from the domain layer, like with an asp.net MVC Web application where the controller part is the application layer and the HTML part is the presentation layer. The application layer changes to accommodate the purpose of that specific application (or service, API, app etc.)

提交回复
热议问题