Session 35
Session 35
4. Voting Protocols
Definition: Voting protocols involve participants voting on whether to commit or
abort a transaction, ensuring that a majority decision dictates the outcome.
Types:
o Basic Voting Protocol: Each participant votes on the transaction and sends the
result to the coordinator. A majority vote decides the outcome.
o Weighted Voting Protocol: Participants have different weights based on their
importance. The outcome is determined by weighted votes.
Advantages:
o Can handle failures more gracefully since decisions are based on participant
consensus.
o Reduces the risk of blocking by allowing multiple participants to make
independent decisions.
5. Dynamic Voting
Definition: Dynamic voting allows the voting configuration to change based on
system conditions or participant availability. It provides flexibility in decision-
making.
Characteristics:
o Participants can join or leave the voting process dynamically.
o The voting weights or counts can be adjusted based on the current system
state.
Advantages:
o Increases resilience against failures by adapting to the availability of
participants.
o Helps maintain consensus even in fluctuating system conditions.
Use Cases: Suitable for large-scale distributed systems, such as cloud computing
environments, where participant availability may vary.
8. Conclusion
Commit protocols are essential for maintaining consistency in distributed systems,
allowing transactions to complete or fail gracefully.
Non-blocking and voting protocols offer solutions to common challenges faced in
distributed transaction management.
Understanding these protocols is crucial for designing robust systems capable of
handling failures while ensuring data integrity.