The application provides a globally serializable multi-
database transaction control method and
system, comprising the following steps: an application service registers multi-
database transaction processing logic to a shim layer; a multi-
database transaction request initiated by a
client is received, and the shim layer intercepts and starts a global transaction of the multi-
database transaction; the shim layer executes a sub-transaction request of the multi-
database transaction according to the multi-
database transaction processing logic; the global transaction is submitted to a two-phase
commit coordinator, and an execution result of the multi-database transaction request is returned to the
client. The application provides
atomicity, durability and global serializability guarantee for the multi-database transaction; based on the shim layer, the concurrent control of the existing database
system is reused, and the application can be seamlessly integrated into the existing application; the transaction coordination overhead is low, and the application is suitable for a high
concurrency environment; the
distributed transaction control has good ACID characteristics; the application does not depend on a specific
service implementation platform; the application has low invasiveness, and the transaction control does not affect the writing of normal
business code.