MrLiuFang commented on issue #12836:
URL: https://github.com/apache/dubbo/issues/12836#issuecomment-1670973661

   > > 使用这种方式是可以的
   > 
   > 那就很奇怪了呀,你的缓存是在 client 侧还是 provider 侧的
   
   目前是放client侧
   
   放provider侧没问题,同一个方法体里多次调用都能正常缓存数据。   
   放client侧就有问题,同一个方法体里多次rpc远程调用除了第一次远程rpc调用能正常缓存数据,其它的第二,三次……都不能正常缓存数据。   
   其实无论放provider还是client方案设计上都没问题,  
主要是想把@Cacheable放到interface接口上,就变成了client侧,从而减少dubbo rpc远程调用的耗时,但是这种做法就会导致上诉问题


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to