Transaction processing method and transaction processing system
A transaction processing and transaction technology, applied in the field of data processing, can solve problems such as transaction inconsistency, and achieve the effect of improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0024] figure 1 It is a flow chart of the transaction processing method provided by Embodiment 1 of the present invention. This embodiment is applicable to the processing of any transaction, for example: the processing of distributed transactions or other complex transactions. This embodiment takes distributed transactions as an example and includes the following steps :
[0025] S102. The database middleware receives the first request for creating a database connection of the global transaction initiated by the transaction initiator through the database agent.
[0026] It can be understood that when the transaction is a distributed transaction, the distributed transaction can be regarded as a global transaction, and each global transaction includes at least one application service, and each application service can be handed over to a node server for processing, where , the server that initiates the global transaction is called the transaction initiator, and the servers of ot...
Embodiment 2
[0034] image 3 It is a flow chart of a transaction processing method provided by Embodiment 2 of the present invention. The technical solution of this embodiment is further optimized on the basis of the foregoing embodiments. Optionally, the transaction processing method further includes: the database middleware receiving the transaction identifier and the transaction start request of the global transaction transmitted by the database agent; The database connection to start the global transaction. Several steps were added. Please refer to Embodiment 1 for the parts not described in detail in this embodiment of the method.
[0035] Such as image 3 As shown, the method in this embodiment may specifically include:
[0036]S302. The database middleware receives the first request for creating a database connection of the global transaction initiated by the transaction initiator through the database agent.
[0037] S304. The database middleware generates a transaction identif...
Embodiment 3
[0066] Figure 8 A schematic structural diagram of a transaction processing system provided by Embodiment 3 of the present invention, such as Figure 8 As shown, the system includes: a transaction initiator 1, a database agent 3 and a database middleware 4, wherein the database middleware includes:
[0067] The request receiving module is configured to receive, through the database agent, a first request for creating a database connection of a global transaction initiated by a transaction initiator, wherein the global transaction includes at least one application service;
[0068] A connection establishment module, configured to generate a transaction identifier corresponding to the global transaction according to the first request, establish a connection with the database, and store a mapping relationship between the transaction identifier and the database connection;
[0069] A feedback module, configured to feed back the transaction identifier to the transaction initiator ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


