On Sat, Nov 17, 2012 at 5:21 AM, Cary Cherng <ccherng@stripped> wrote:
> Does this mean that two-phase commit incurs 3 round trips? One round trip
> for the branches of the global transaction to be sent, executed at their
> local site, and a response. A second round trip for the prepare phase
> message and response. A third round trip for the commit phase message and
> response.
>
From my understanding of XA, I think it's even worse than three round
trips, because you also have to issue XA BEGIN/XA END to delimit the 2PC
transaction. So I think there are five round trips involved in total.