Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Is there some kind of library or framework to support a redundantly distributed

ID: 660817 • Letter: I

Question

Is there some kind of library or framework to support a redundantly distributed collection of Java data objects? By 'redundantly', I mean a complete set of data is maintained on every node of the distributed team of computers.

I've been introduced to HazelCast technology which implements collections (lists, maps, queues, and more) shared across JVMs (Java virtual machines). Any of the JVMs (nodes) can perform a Get or Put operation against the entire collection unified in memory across the multiple JVMs. Interesting technology, but not quite what I need.

Sharding is used in the HazelCast implementation, with each node holding a subset of the collection

Explanation / Answer

SharedHashMap (Github) is worth to be added to your watchlist. It fits your description. SharedHashMap is java.util.Map implementation which stores the entries off-heap and replicates them across nodes via sockets. Keys and values should be Serializable or implement specialized marshalling interface.

It isn't production-ready solution yet, but it is very actively developed right now.

P. S. Note I am affiliated with OpenHFT.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote