One-Phase Commit
It is the simplest commit protocol. In this commit protocol, there is a controlling site, and there are a variety of slave sites where the transaction is performed. The steps followed in the one-phase commit protocol are following: –
- Each slave sends a ‘DONE’ message to the controlling site after each slave has completed its transaction.
- After sending the ‘DONE’ message, the slaves start waiting for a ‘Commit’ or ‘Abort’ response from the controlling site.
- After receiving the ‘DONE’ message from all the slaves, then the controlling site decides whether they have to commit or abort. Here the confirmation of the message is done. Then it sends a message to every slave.
- Then after the slave performs the operation as instructed by the controlling site, they send an acknowledgement to the controlling site.
Commit Protocol in DBMS
This article covers topics related to the database management system. In this article, we will learn about the commit protocols that are in the subject of database management systems. This article then describes the types of Commit protocols in database management systems. It then talks about the advantages of a Database Management System.