Giriş
Açıklaması şöyle
A ReplicatedMap is a map-like data structure with weak consistency and values locally stored on every node of the cluster.Whenever a value is written asynchronously, the new value will be internally distributed to all existing cluster members, and eventually every node will have the new value.When a new node joins the cluster, the new node initially will request existing values from older nodes and replicate them locally.
Bir başka açıklama şöyle
... guarantees that entries placed into it will be replicated to all nodes of the cluster.
Replication
ReplicatedMap kendi replication mekanizmasına sahip. Eğer cluster'a yeni bir member katılırsa diğer tüm member'lardan bilgiyi ister yani replication işini kendisi yapar. Bu görevi yerine getiren sınıf ReplicatedMapProxy. ReplicatedMapProxy.initialize() metodunda yapıyor
Hiç yorum yok:
Yorum Gönder