天天看點

SAP Hybris和Netweaver的租戶隔離(Tenant isolation)機制設計

ABAP裡的tenant isolation是通過DB table的client ID來區分的.

Hybris也有multi tenant的concept:

Hybris multi tenant典型的使用場景:

(1) Hosting SAP Hybris Commerce for several individual customers

(2) One single, corporate-wide SAP Hybris Commerce serving individual countries with individual product and customer data

(3) Using the SAP Hybris Commerce CMS module to power country-specific versions of a company website

在project folder下的project.properties裡定義一個Hybris server上支援哪些tenant:

Hybris裡tenant isolation是通過table name prefix來實作的

不同的tenant需要定義不同的table prefix:

配置檔案的naming convention: tenant_.properties:

table prefix在.properties裡的定義方式:

在admin console裡對tenant進行管理:

本文來自雲栖社群合作夥伴“汪子熙”,了解相關資訊可以關注微信公衆号"汪子熙"。

繼續閱讀