Distributed transaction two-phase commit

1. Taking bank transfer as an example to explain the specific implementation plan of distributed transactions, the second-stage submission

Distributed transaction two-phase commit

2. Supplement

After the transaction center receives the pre-submission from Bank A, if it does not receive the notification of the successful deduction in step 6 within a fixed time, it will initiate a poll to check whether the deduction is successful from Bank A. If the deduction fails, the transaction center will delete the deduction. Record, notify the user that the transfer failed

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326488406&siteId=291194637