December 2023
Intermediate to advanced
464 pages
12h 35m
English
Order cluster nodes based on their age within the cluster to allow nodes to select a leader without running an explicit election.
Peer-to-peer systems treat each cluster node as equal: there is no leader. This means there is no explicit leader election process as happens in the Leader and Followers pattern. Sometimes the cluster also doesn’t want to depend on a separate Consistent Core to improve availability. However, there still needs to be one cluster node acting as cluster coordinator for tasks such as assigning data partitions to other cluster nodes and tracking when new cluster nodes join or fail and taking corrective actions.
One of the common techniques used in peer-to-peer systems is to ...