Service Layer Pattern - Could we avoid the service layer on a specific case?

后端 未结 2 1369
滥情空心
滥情空心 2021-02-10 06:23

we are trying to implement an application using the Service Layer Pattern cause our application needs to connect to other multiple applications too, and googling on the web, we

2条回答
  •  余生分开走
    2021-02-10 07:04

    As mentioned in the link you posted, the service layer defines an "interface" for clients by encapsulating the (complex) business logic and centralizing the control of transaction involving several resources. The service layer is not only used when you need to "share" services, it just makes it easier. But even with a single consumer, centralizing the control of transaction makes sense.

提交回复
热议问题