Hybris service layer和SAP CRM WebClient UI架構的橫向比較

i042416發表於2020-03-10

Hybris service layer和SAP CRM WebClient UI架構的橫向比較

我把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.

Hybris service layer和SAP CRM WebClient UI架構的橫向比較

上圖的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.


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2679317/,如需轉載,請註明出處,否則將追究法律責任。

相關文章