Reader small image

You're reading from  Getting Started with Hazelcast, Second Edition

Product typeBook
Published inJul 2015
Reading LevelIntermediate
PublisherPackt
ISBN-139781785285332
Edition1st Edition
Languages
Right arrow
Author (1)
Matthew Johns
Matthew Johns
author image
Matthew Johns

contacted on 6 may '16 ________ Matthew Johns is an agile software engineer and hands-on technical/solution architect; specialising in designing and delivering highly scaled and available distributed systems, with broad experience across the whole stack. He is the solution architect and lead engineer at Sky.
Read more about Matthew Johns

Right arrow

Having some of our data everywhere


There are some use cases where certain data that is stored within a cluster is relied upon so heavily, it would be beneficial to have a backup copy on every node. This, combined with enabling the read-backup-data option for the collection, means that we will always serve this data directly from the queried node rather than reaching out from across the cluster. We can achieve this by ensuring that the number of copies was configured to be the same as the number of nodes, but this configuration would immediately degrade the moment we scaled up the cluster.

Fortunately, this use case has been considered for us. ReplicatedMap is a specialized map collection. Rather than partitioning the data and distributing a set number of replicas amongst the available nodes, the data is weakly replicated to all the nodes in the cluster. This makes it best suited for immutable, idempotent, or semi-static data due to the fact that changes will be made on a best efforts basis...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Getting Started with Hazelcast, Second Edition
Published in: Jul 2015Publisher: PacktISBN-13: 9781785285332

Author (1)

author image
Matthew Johns

contacted on 6 may '16 ________ Matthew Johns is an agile software engineer and hands-on technical/solution architect; specialising in designing and delivering highly scaled and available distributed systems, with broad experience across the whole stack. He is the solution architect and lead engineer at Sky.
Read more about Matthew Johns