2 submission and 3-paragraph submission analysis

Source: Internet
Author: User
2-Paragraph Submission
Note left of Coordinator: Voting phaseCoordinator->Cohort1: queryCoordinator->Cohort2: queryCohort1-->Coordinator: yes/noNote right of Cohort1: prepare/abortCohort2-->Coordinator: yes/noNote right of Cohort2: prepare/abortNote left of Coordinator: Commit phaseCoordinator->Cohort1: commit/rollbackCoordinator->Cohort2: commit/rollbackCohort1-->Coordinator: acknowledgmentNote right of Cohort1: commit/abortCohort2-->Coordinator: acknowledgmentNote right of Cohort2: commit/abort
Submit Request Phase
  1. The collaborator sends the submission request to each performer;
  2. The performer receives the commit request, starts the execution of the transaction, and the two sides record the rollback and retry log;
  3. The performer executes the transaction, notifies the collaborator whether the commit can be executed, suspends the resource waiting for the collaborator's notification;
Submission Phase
  1. The collaborator receives all the performers ' notifications to decide whether to initiate the submission or roll back the request;
  2. Each performer completes the instructions of the collaborator to release the resources;
  3. The collaborator waits for all the performers to complete the transaction after the ACK;
3-Paragraph Submission

2 submission and 3-paragraph submission analysis

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.