-
1. Re: How do I (partially) synchronize a client with a set of HotRod servers?
mircea.markus Jun 3, 2011 4:59 AM (in response to cdman)Will solve that for you ISPN-374, but before that you can also:
- have a HR server on top of a local cache on the client. The local cache can also be used as an L1 cache
- have a listener on the server side that can connect to the HR server on the client
- on changes the listener notifies the client
Another approach is through JMS.
Or the nicest is ISPN-374, if you feel like contributing would be great!
-
2. Re: How do I (partially) synchronize a client with a set of HotRod servers?
cdman Jun 13, 2013 11:59 AM (in response to cdman)Hello,
Thank you for the feedback. It has been a long time coming, but finally I put together a concrete code example using some of techniques from above. You can read the article about it here: http://www.todaysoftmag.com/article/en/12/High_availability_performance_systems_using_data_grids_in_Java_437 and get the code here: https://github.com/cdman/infinispan-exchange
I would also like to thank Dan Berindei for his help.
Some updates:
- hotrod is not used because watching for elements would have needed implementing an interceptor (I understand from Dan that listeners are called before the element is actually committed and using them would have created the risk of double-processing). Instead I just created a REST endpoint
- also, hotrod doesn't support continious query, so there is no good solution for the output
- an other issue with HotRod (in my opinion) is that implementation of non-java clients seems to have stalled a little bit
- the transaction + failover support seems to have some bugs which Dan is (has?) ironed out
Unfortunately the performance I got out of the system (~1000 TPS) is too low for the kind of solution I was looking for (feel free to look at the code and suggest improvements, but the matching engine itself supports ~400k operations on the same system and a test with Radargun confirmed that this value is in the range of values to be expected).
Thank you,
Attila