天天看点

SAP Netweaver gateway cache table logic

gateway系统首先会检查自己的 cache table看里面是否有cached的model数据:

SAP Netweaver gateway cache table logic
SAP Netweaver gateway cache table logic

接下来gateway会把这个从frontend端cache table里读出来的model的change timestamp和后台的timestamp做比较:

SAP Netweaver gateway cache table logic

就是frontend这张表里的数据: /IWFND/I_MED_CTC. application第一次运行时,frontend的cache table必定是空的,第一次metadata请求完之后,从后台返回的model数据就存在这张表里。

Backend class:

如果后台MPC_EXT的lv_last_modified和frontend传进来的cached model的last change timestamp一致,就认为model是最新的,不用发送。

SAP Netweaver gateway cache table logic
SAP Netweaver gateway cache table logic

否则认为cache应该发送:

SAP Netweaver gateway cache table logic

如果cache_timestamp 为空,证明frontend系统没有enable cache,这种情况下不需要发送cache model到frontend。

SAP Netweaver gateway cache table logic

继续阅读