Coding, Code, Technology, AI, System Design Interview.
termination, exists to make the consensus algorithm fault-tolerant. In case if a node or some nodes in the system crash, the rest of the nodes in the system should be able to reach a decision. The two-phase commit protocol, can’t tolerate crashes and if a node crashes, the protocol must wait