In a decentralized variant of the two-phase commit protocol the participants communicate directly with one another instead of indirectly via the coordinator. In Phase 1, the coordinator sends its vote to all the participants. In Phase 2, if the coordinator's vote is No, the participants just abort the transaction; if it is Yes, each participant sends its vote to the coordinator and the other participants, each of which decides on the outcome according to the vote and carries it out. Calculate the number of messages and the number of rounds it takes. What are its advantages or disadvantages in comparison with the centralized variant?

What will be an ideal response?


In both cases, we consider the normal case with no time outs. In the decentralised version of the two-phase commit protocol:

No of messages:

Phase 1: coordinator sends its vote to N workers = N

Phase 2: each of N workers sends its vote to (N-1) other workers + coordinator = N*(N - 1). Total = N*N.
No. of rounds:

coordinator to workers + workers to others = 2 rounds.

Advantages: the number of rounds is less than for normal two-phase commit protocol which requires 3. Disadvantages: the number of messages is far more: N*N instead of 3N.

Computer Science & Information Technology

You might also like to view...

A problem that occurs with classification codes is that:

A) there may not be enough letters to form a complete code. B) the classifications may not be secure enough. C) there may be several groups that have the same first letter. D) the classifications are not easily understood since they are encrypted. E) the data may not be recognized as belonging to any classes.

Computer Science & Information Technology

In bucket hashing keys are hashed to buckets, nodes that accommodate multiple data occurrences.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

For safety-critical systems, ____ is a key requirement.

reliability context frequency multimedia

Computer Science & Information Technology

An entity that issues digital certificates is a _____.

A. Certificate Signatory (CS) B. Digital Signer (DS) C. Certificate Authority (CA) D. Signature Authority (SA)

Computer Science & Information Technology