Terracotta (http://terracotta.org) replicates changes from one heap to heaps in other VM’s and allows to synchronization and migrate threads across server instances. Let us compare the available solutions a bit.

SCALABLE AVAILABLE NOT SERIALIZATION-BASED IMPACT ON FUTURE SOFTWARE ARCHITECTURE IMPACT ON
BUSINESS LOGIC
Message queue approach  Low Yes Medium High
Database approach  medium  Yes High High
“RPC spread” like JGroups or Zookeeper  possible Yes  depend on Medium High
Custom API Low Yes  depend on High High
App Server medium Yes  depend on  Medium Medium
Clustered JVM Medium to high Yes X Low Low

I like this article – don’t be confused how old it is- http://jonasboner.com/2007/01/29/how-to-build-a-pojo-based-data-grid-using-open-terracotta/.

Or

Advertisements