2 Replies Latest reply on May 4, 2015 8:33 AM by rnizam

    Key Affinity Service with no random key

    rnizam

      My case is, I have a clustered cache that have 3 nodes for example. On each node I want to make sure that the stored objects will be saved on the current node.

       

      I see that the Key affinity service might be a good solution (you provide the node name, and you will get a proper key). however, In my case, I don't want the service to generate a random key for me, I have my own key. When the other node want to retrieve an object from a remote node, they will use that key also.

       

      Thanks

        • 1. Re: Key Affinity Service with no random key
          sannegrinovero

          Hi Ridwan,

          I am having the same requirement, and have been discussing some design possibilities with the Infinispan core team.

           

          Some of my work is ready, but it's not well tested yet, it's not integrated and the API will probably need to evolve a bit, so I can't promise when it will be included in a stable release but if you want to help by testing it and/or commenting on the proposal I could share some work in the next days. I think I will have a first pull request ready next week.

           

          Great coincidence to see this question today ;-)

          • 2. Re: Key Affinity Service with no random key
            rnizam

            Thanks for your reply. Glad to hear that someone have the same case

             

            I can help in commenting on the proposal. Also I can do few tests .

             

            Thanks.