Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Inactive Publication Date: 2019-07-16
ISOFTSTONE INFORMATION TECHNOLOGY (GROUP) CO LTD
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] When using the 2PC method or TCC method to process distributed tasks, since the transaction initiator and each transaction participant correspond to different databases, if the transaction coordinator goes down, some transaction participants may receive submission requests, while other participants The recipient did not receive the request, resulting in transaction inconsistency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Transaction processing method and transaction processing system
  • Transaction processing method and transaction processing system
  • Transaction processing method and transaction processing system

Examples

Experimental program
Comparison scheme
Effect test

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 ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a transaction processing method and a transaction processing system. The transaction processing method comprises steps that a first request for creating a database connection of a global transaction initiated by a transaction initiator is received through a database agent by using the database middleware, wherein the global transaction comprises at least one application service; the database middleware generates a transaction identifier corresponding to the global transaction according to the first request, establishes a connection with a database, the mapping relationbetween the transaction identifier and the database connection is stored; the database middleware feeds back the transaction identifier to the transaction initiator through the database agent; therefore, the transaction initiator processes or transmits the global transaction through the transaction identifier. According to the invention, the transaction of the same database participated by different application services is realized, the problem of distributed transaction inconsistency caused by the fact that different business systems hold different database connections in the prior art is solved, the transaction consistency does not need to be coordinated through a transaction coordinator, and the transaction processing efficiency is improved.

Description

technical field [0001] The embodiments of the present invention relate to data processing technologies, and in particular, to a transaction processing method and a transaction processing system. Background technique [0002] In the microservice or distributed system architecture, complex monolithic applications are usually split into several simple and loosely coupled services to reduce development difficulty and enhance scalability. Both require the participation of multiple services, and different services often use different database connections, that is, the databases are physically separated. At the same time, under the microservice or distributed system architecture, a large number of distributed transaction solutions have emerged. Among them, distributed transactions refer to transaction participants, resource managers and transaction managers located between different nodes of different distributed systems. In general, a transaction is an indivisible unit of work. A...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L29/08
CPCH04L67/1097H04L67/56
Inventor 陆金鑫赵洲鹏王永海
Owner ISOFTSTONE INFORMATION TECHNOLOGY (GROUP) CO LTD