业务逻辑和服务

发布于 2024-08-13 18:40:39 字数 63 浏览 4 评论 0原文

在三层/多层架构(UI/逻辑/DAO/域模型)中,服务是否可以被视为属于业务逻辑层,或者它们是否位于单独的部分?

In a three-tier/multitier architecture (UI/Logic/DAO/Domain model), can services be considered as belonging to the business logic layer or are they situated as something separate ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

泪意 2024-08-20 18:40:39

您可能会发现像“服务”这样相当通用的词对不同的人来说意味着不同的事情。

我认为服务是编排业务对象(或其他服务)公开的逻辑以实现有用任务(例如业务流程)的东西。因此,对我来说,服务是业务逻辑层的消费者(可能还有日志记录等支持方面的消费者)。

You will probably find that a fairly generic word like "service" means different things to different people.

I think of a service as something that orchestrates the logic exposed by business objects (or other services) to implement a useful task (such as a business process). So, for me, a service is a consumer of the business logic layer (and probably of support aspects such as logging).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文