3

We are planning to use Infinispan in client server mode. The architecture has many clients (client 1, client 2 and so on ) and a distributed infinispan network.

We need to update the data in the cache periodically, say every5 hours . All clients could be able to update the data. If one of them (say client 1) is updating we need to prevent others doing the same job. Once the updating is complete all clients wait another 5 hour and, any of them will do the the updating again.

How to achieve this in infinispan 6?

Thanks in advance.

Durandal
  • 5,575
  • 5
  • 35
  • 49
Dinoop paloli
  • 633
  • 2
  • 8
  • 25

1 Answers1

2

If the clients are on different machines (you run Infinispan as server(s)), you should use HotRod clients to access the cache. There, see the getVersioned and replaceWithVersion methods on RemoteCache.

Radim Vansa
  • 5,686
  • 2
  • 25
  • 40
  • Ah, I haven't noticed that you know about these operations (according to your previous question). – Radim Vansa Feb 03 '14 at 10:27
  • this question I have asked before I get information about the versioned Api. But as discussed in question http://stackoverflow.com/questions/21522203/infinispan-the-versioned-operation-returning-incorrect-results I have share the log file which you asked. Can u please check the issue? – Dinoop paloli Feb 04 '14 at 11:17
  • I've updated the other answer. Then, please mark this answer as correct. – Radim Vansa Feb 08 '14 at 21:39