Distributed solutions to common problems

First, the Distributed Transaction Solutions

 1. Causes

  1) sub-library sub-table database.

  2) SOA: Service of the micro.

  2.X / OpenDTP transaction model

 2.1 X / OpenDTP role:

  Of:

  RM: Resource Manager. database

  TM: Transaction Manager.

 2.2 2PC: to ensure the integrity of distributed transactions.

   [1] Phase One: submit transaction requests.

    1) TM AP to send all content transactions, transaction asking whether the submission of operations can be performed, and wait for response of the respective AP.

    2) the enforcement branch

    3) to respond to all inquiries TM feedback AP transaction.

  [2] execute the transaction commits

    1) commit transaction

    2) interrupts the transaction commits

 

 

 

    

Guess you like

Origin www.cnblogs.com/wenxiangchen/p/11331477.html