java - client cluster database synchronization with Hibernate -
i have java multi client application uses database shared among clients through hibernate. know how can guarantee clients have up-to-date data database.
even if didn't use sort of cache , clients loaded latest data database client store possibly out of date data in form of gui elements displayed or application status.
and application without cache extremely unresponsive.
what need cache kept date (through database change events trigger each client hit database) , gui being notified when changes happened in cache , update new data arrived database.
i checked terracotta seemed needed managing cache coherence , clustering of clients far looks if terracotta manages distributed map, queue, multimap, executorservice doesn't in context of database instead makes possible share map distributed cache.
has indication of how multi client application using hibernate database can guarantee data @ clients date database , each client notified when client changes database?
about notifications in terracotta products: have @ this article. caching options in terracotta products: have @ this article. may you.
also, can implement sort of data-update protocol between clients yourself. jgroups going way.
Comments
Post a Comment