Commit Protocol

Commit Protocols: They are used to design systems that exhibit a well defined behaviors in the event of a failure. These systems may or may not perform the specified function during failures, but they may facilitate actions suitable for recovery. We can summarize it as; Commit protocols are used to ensure atomicity across sites a transaction which executes at multiple sites must either be committed at all the sites, or aborted at all the sites. not acceptable to have a transaction committed at one site and aborted at another The two-phase commit (2 PC ) protocol is widely used The three-phase commit (3 PC ) protocol is more complicated and more expensive, but avoids some drawbacks of two-phase commit protocol. There are two kinds of commit protocols : Two-Phase Commit protocol - a blocking protocol Three-Phase Commit protocol - a non-blocking protocol Two-Phase Commit Protocol In ...