Distributed DBMS-Commit protocols
Distributed DBMS-Commit protocols
Protocols
In a local database system, for committing a transaction, the
transaction manager has to only convey the decision to commit to the
recovery manager. However, in a distributed system, the transaction
manager should convey the decision to commit to all the servers in the
various sites where the transaction is being executed and uniformly enforce
the decision. When processing is complete at each site, it reaches the
partially committed transaction state and waits for all other transactions to
reach their partially committed states. When it receives the message that all
the sites are ready to commit, it starts to commit. In a distributed system,
either all sites commit or none of them does.
One-phase commit
Two-phase commit
Three-phase commit
The steps are same as two-phase commit except that “Commit ACK”/”Abort
ACK” message is not required.