Short answer: Two-phase commit makes a set of participants install one outcome, commit or abort, for a single transaction. The coordinator collects a vote. A participant who votes yes first writes a record that it will accept the coordinator’s later decision. If every vote is yes, the coordinator writes…
Category: Distributed Systems
How rendezvous hashing picks the highest score
Short answer: Rendezvous hashing, or highest random weight, places a key on the node that maximizes a hash of the key mixed with the node id. Every node computes the same scores, so every client agrees. Adding or removing a node moves only the keys for which that node…
How consistent hashing places keys on a ring
Short answer: Consistent hashing maps keys and nodes onto a circle by a hash. A key is stored on the first node at or clockwise from the key’s point. Adding or removing a node moves only the keys that walk past that node, about 1/n of the keys when…
