2 Replies Latest reply on Sep 4, 2018 3:48 AM by rvansa

    Hibernate 2nd level caching with hotrod support

    daroleary

      Hi, I’m wondering with the introduction of transactions to hotrod are there any plans to have the infinispan-hibernate library updated to support the infinispan remote cache manager in order to enable 2nd level caching against a remote infinispan cluster?

        • 1. Re: Hibernate 2nd level caching with hotrod support
          galder.zamarreno

          Not at the moment... but contributions are always welcome and we can provide guidance

          • 2. Re: Hibernate 2nd level caching with hotrod support
            rvansa

            Embedded 2nd level cache integration does not use Infinispan transactional caches anymore, so this is not really related.

             

            Have you made any analysis of your use case that would hint you that remote cache would be a fruitful effort? The problem is that if the cache is remote, you need to do RPC - you may as well do that right to the DB (or one of the DB slave nodes replicating the state to spread the load) without the risk that you get cache miss and have to reach the DB anyway. If you're about to argue with near cache (keeping the data locally), you might as well use embedded mode and set eviction policy to not use too much memory.