[
https://issues.jboss.org/browse/ISPN-1342?page=com.atlassian.jira.plugin....
]
Galder Zamarreño commented on ISPN-1342:
----------------------------------------
With remote events implemented, it's now the time to address the near cache use case.
The simplest thing is to implement the near cache as part of the Java Hot Rod client.
Doing so requires creating a remote event listener that listens for cache entry created,
modified and removed events. On top of that, a converter needs to be created that builds a
custom event containing the value for created and modified events. This converter class
would need sharing between the client and the server, which is slightly problematic since
the only module in common is commons, and it lacks the Converter interface, plus it would
not make a lot of sense for the Converter to be present there. So, it makes sense to
implement ISPN-4757 to enable callbacks to work with raw data.
Support for Near-Cache Pattern
------------------------------
Key: ISPN-1342
URL:
https://issues.jboss.org/browse/ISPN-1342
Project: Infinispan
Issue Type: Feature Request
Components: Core
Affects Versions: 5.0.0.FINAL
Reporter: Peter Novak
Assignee: Galder Zamarreño
Fix For: 7.1.0.Final
Please create some support for near-cache pattern for distributed cache. Some detailed
description could be found in Oracle Coherence documentation
http://download.oracle.com/docs/cd/E13924_01/coh.340/e13819/nearcache.htm or in Cameron
Purdy presentation
http://frech.info/themen/CameronPurdy-DistributedCachingEssentialLessons.pdf
It is based on combination of L1 caching in local JVM of application with combination of
L2 cache based on distributed cache cluster on other servers. I tried to implement this
myself, but HotRod does not support Client-side listeners (The
UnsupportedOperationException is thrown). It could be cool, if I could register some kind
of eviction listener on client side and use it for invalidation of records in local cache
based on event from remote distributed cache (L2).
Some kind of workaround was described in
http://community.jboss.org/thread/166993 :
"We don't have L1s yet, but you could implement Cache Listeners on the server
side and use JMS to notify your clients and build an L1 that way."
Thanks for so great cache like infinispan is.
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)