It would be much easier to explain how TC/C works with a real-world example. Suppose we want to transfer $1 from account A to account C. Table 2 gives a summary of how TC/C is executed in each phase.
Phase Operation A C
1 Try Balance change: -$1 Do nothing
2 Confirm Do nothing Balance change: +$1
Cancel Balance change: +$1 Do Nothing
Table 2 TC/C example
Let’s assume the wallet service is the coordinator of the TC/C. At the beginning of the distributed transaction, account A has