您现在的位置是:首页 > 文章详情

Hybris service layer和SAP CRM WebClient UI架构的横向比较

日期:2020-02-29点击:409

我把Hybris service layer理解成CRM WebUI的API layer.
The Hybris ServiceLayer is an API for developing services for SAP Hybris Commerce. It provides a number of common services, while allowing you to extend these or develop your own.
The main characteristics of the ServiceLayer are: - 我逐条和CRM WebUI框架比较

(1) It is based on a service-oriented architecture.
Jerry: Hybris里的SOA架构和BYD不一样,后者支持不同的deployment unit部署在不同服务器上, cross unit的应用通过message通信。
Hybris是一个monolithic应用,所有的extension物理上都运行在一台server,一个session里(不考虑cluster mode)

(2) It provides a clean separation of business logic and persistence logic.
Jerry: CRM WebUI也满足。

(3) It provides a number of services, each with its well-defined responsibilities.

(4) 这个描述太generic,大多数framework的某个layer都应该满足。

(5) It provides a framework to develop your own services and to extend existing ones.
Jerry:CRM WebUI的API和Genil layer也支持extensibility

(6) It is heavily based on the Spring Framework.
Jerry: 这是Hybris的特色和强大之处,抱Spring的大腿

(7) It is based on common patterns, such as interface-oriented design and dependency injection.
Jerry: CRM WebUI也满足。

(8) It is the layer where partners should implement their business logic.
Jerry: CRM WebUI也满足。

(9) It provides hooks into model life-cycle events for performing custom logic.
Jerry: ABAP没有build一说,也不需要在class activate的时候执行post操作。没有这种use case.

(10) It provides hooks into system event life-cycle events such as init and update process.
Jerry: 同8

(11) It provides a framework for publishing and receiving events.
Jerry: CRM WebUI里大量使用到的event subscription和issue就是CL_CRM_BOL_ENTITY_COL的focus_changed event.

上图的client是这四种entity的通称:

(1) Page Controllers of an MVC framework
(2) Web Service clients
(3) Scripts
(4) Other services

三种service:

(1) Business Services implement business use cases, such as cart handling or back order.
(2) Infrastructure Services provide the underlying technical foundation, such as internationalization, import, export, and so on.
(3) System services provide functionality required by the ServiceLayer, such as model handling and session handling.

本文来自云栖社区合作伙伴“汪子熙”,了解相关信息可以关注微信公众号"汪子熙"。

原文链接:https://yq.aliyun.com/articles/747326
关注公众号

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。

持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。

文章评论

共有0条评论来说两句吧...

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章