3 Replies Latest reply on Oct 30, 2012 5:30 AM by Mikolaj Gierulski

    Near cache implementation challenge

    jacob1111 Newbie



      I currently implemented near cache functionality using the following architecture:

      Screen Shot 2012-10-10 at 5.31.36 PM.png


      I used embedded and HotRod acces modes to cache Java objects. Currently

      it works.


      However, I don't like this implementation. It looks overly complicated. In order

      to get your object from one application to another you have to download it

      from embedded cache to client-server cache used by HotRod access mode

      and then to put it into embedded cache on another server.


      Is there any way to simplify this architecture?


      What I really prefer is something like that:

      Screen Shot 2012-10-10 at 6.43.06 PM.png

      With this architecture I woulkd like to go directly to another node's cache

      and get the object I need immediately. It also does not need replication.


      I could not find the description of this architecture anywhere. All current

      implementation use replication between nodes, something I showed

      on the 1st figure.


      Is it possible to write near cache application without replication?

      What Infinispan configuration file will look like?


      I appreciate any help.


      Best regards,


      Jacob Nikom