This topic explains how region distribution and replication work in VMware Tanzu GemFire.
Note: The management of replicated and distributed regions supplements the general information for managing data regions provided in Basic Configuration and Programming. See also org.apache.geode.cache.PartitionAttributes
.
A distributed region automatically sends entry value updates to remote caches and receives updates from them.
Region
put
and create
operations. The creation of an entry with a non-null value is seen as an update by remote caches that already have the entry key. Entry updates are distributed only to caches where the entry key is already defined. This provides a pull model of distribution, compared to the push model that you get with replication.In a distributed region, new and updated entry values are automatically distributed to remote caches that already have the entries defined.
Step 1: The application updates or creates the entry. At this point, the entry in the M1 cache may not yet exist.
Step 2: The new value is automatically distributed to caches holding the entry.
Step 3: The entry’s value is the same throughout the cluster.