3 Replies Latest reply on Jul 21, 2011 2:15 PM by galder.zamarreno

    Infinispan and horizontal partitioning

    r0nan

      Hi everybody.

       

      Im very existed to learn more about Infinispan (since im a big fan of JBoss products ). I would like to use Infinispan to create a horizontal partitioned environtment....I know its not database partitioning...its more like data partitioning.

      But still can Infinispan support this functionality?

       

      Thanks your answer.

      Cheers

        • 1. Re: Infinispan and horizontal partitioning
          manik

          Yes it can.  Use distributed mode, which is a horizontally partitioned store.

          • 2. Re: Infinispan and horizontal partitioning
            r0nan

            Hey Manik.

             

            Thanks your answer. I guess Infinispan will use a hash algorithm across the nodes. Is there any other algorithm which i can use in that case? For example: range or value?

            Another question: Is it possible to use Infinispan as Hibernate L2 cache in distributed mode? So basicly can i use distributed mode above a lot of Hibernate enabled databas(es)?

             

            Cheers.

            • 3. Re: Infinispan and horizontal partitioning
              galder.zamarreno

              You shouldn't need to worry about the hash algorithm.

               

              Nothing stops you from using distribution with Hibernate 2LC, but it kinda defeats the purpouse of a cache where data is quickly available locally and so can result in cache reads having to go remote and so if you need to go remote, might as well go to the database. But as always, try and test and see what works best for your use case