The application discloses a kind of distributed reservation systems and methods for multi-resource cooperation, comprising: transaction manager, at least two resource managers,
lock manager,
transaction log module and
workflow controller;Transaction manager coordinates each resource manager through two-phase
commit 2PC protocol, realizes the
atomicity execution of cross-node shadow and summary table update;
Lock manager adopts read-write lock separation mechanism to resolve concurrent conflict, and handles
deadlock problem through
timeout detection and active unlocking strategy;
Transaction log module is based on prewrite log mechanism Complete
record shadow and summary table linkage operation details, provide reliable support for fault
recovery and transaction
rollback;
Workflow controller encapsulates distributed call details, realizes service survival real-time detection and automatic reconnection function.The application has high expansibility, strong consistency, high concurrent
adaptation capability and perfect exception fault-tolerant mechanism, and can be widely applied to travel service scene of multi-
node deployment.