业务逻辑和服务
在三层/多层架构(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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能会发现像“服务”这样相当通用的词对不同的人来说意味着不同的事情。
我认为服务是编排业务对象(或其他服务)公开的逻辑以实现有用任务(例如业务流程)的东西。因此,对我来说,服务是业务逻辑层的消费者(可能还有日志记录等支持方面的消费者)。
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).