Search code examples
springhbasegemfirespring-data-gemfire

Gemfire and HBase Connector


I want to build Gemfire to/from HBase connectors for real time data inserts from GemFire to Hbase and vice-versa ,any pointer on this would be a great help. Basic requirement is to evict data into Hbase, expired data should flush to Hbase and if cache miss happens data should pulled from Hbase.


Solution

  • This can be accomplished by implementing the CacheListener and CacheLoader interfaces, respectively. You can register 1 or more CacheListeners along with a CacheLoader on the Region(s) tied to HBase. I am not sure what event is fired during "eviction", but during "expiration", the afterInvalidate is triggered.

    See the GemFire UG on Eviction, Expiration, Syncing with Outside DataSources, Events and Event Handling, and specifically, Event Handlers.

    Hope this helps!