CN115729946A - Method, device, equipment and storage medium for processing distributed transaction - Google Patents

Method, device, equipment and storage medium for processing distributed transaction Download PDF

Info

Publication number
CN115729946A
CN115729946A CN202211484166.6A CN202211484166A CN115729946A CN 115729946 A CN115729946 A CN 115729946A CN 202211484166 A CN202211484166 A CN 202211484166A CN 115729946 A CN115729946 A CN 115729946A
Authority
CN
China
Prior art keywords
transaction
branch
micro
service
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211484166.6A
Other languages
Chinese (zh)
Inventor
袁希良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Clp Jinxin Software Shanghai Co ltd
Original Assignee
Clp Jinxin Software Shanghai Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Clp Jinxin Software Shanghai Co ltd filed Critical Clp Jinxin Software Shanghai Co ltd
Priority to CN202211484166.6A priority Critical patent/CN115729946A/en
Publication of CN115729946A publication Critical patent/CN115729946A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a method, a device, equipment and a storage medium for processing distributed transactions, wherein the method comprises the following steps: inquiring the mapping relation between the transaction and the transaction sequence table, and acquiring a target transaction sequence table mapped by the transaction to be processed; aiming at each branch transaction, performing first registration on the transaction state of the combined service side, marking the transaction state of the combined service side as processing, and executing the corresponding branch transaction; aiming at the micro service to be called in the corresponding branch transaction, carrying out second registration on the transaction state of the micro service side, marking the transaction state of the micro service side as processing, calling the corresponding micro service, and carrying out processing on the corresponding branch transaction; after determining that the branch transaction processing is completed, updating the transaction state of the micro-service side according to the branch transaction processing, and returning the branch transaction processing result to the combined service side; and updating the transaction state of the combined service side according to the received branch transaction processing result. The distributed transaction can be managed, and the consistency of transaction processing is improved.

Description

Method, device, equipment and storage medium for processing distributed transaction
Technical Field
The present invention relates to the field of distributed technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing a distributed transaction.
Background
The distributed system can enable a plurality of transactions of one transaction to be processed at different nodes in the system by utilizing the micro-service, and can greatly enhance the processing efficiency of the transaction. However, this processing method is liable to result in poor transaction consistency. Therefore, the distributed system ensures the consistency of the transaction, and needs to uniformly manage the distributed transaction, and how to uniformly manage the distributed transaction to ensure the consistency of the transaction has no feasible technical scheme.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, a device, and a storage medium for processing a distributed transaction, so as to manage the distributed transaction and improve the consistency of transaction processing.
In a first aspect, an embodiment of the present invention provides a method for processing a distributed transaction, including:
inquiring a mapping relation between the transaction and the transaction sequence table, and acquiring a target transaction sequence table mapped by the to-be-processed transaction, wherein the target transaction sequence table comprises one or more branch transactions;
according to the sequence of each branch transaction in the target transaction sequence table, performing first registration on the transaction state of the combined service side aiming at each branch transaction, marking the transaction state of the combined service side as processing, and executing the corresponding branch transaction;
aiming at the micro service to be called in the corresponding branch transaction, carrying out second registration on the transaction state of the micro service side, marking the transaction state of the micro service side as processing, calling the corresponding micro service, and carrying out processing on the corresponding branch transaction;
after the branch transaction processing is determined to be completed, updating the transaction state of the micro-service side according to the branch transaction processing, and returning the branch transaction processing result to the combined service side;
and the combined service side updates the transaction state of the combined service side according to the received branch transaction processing result.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the first registering a combined service side transaction state includes:
judging whether the service for carrying out the first registration is a combined service in the branch transaction;
if yes, calling the combined service to perform global transaction registration and branch transaction registration in which the combined service side transaction state is in processing, and if not, calling the combined service in the branch transaction to perform branch transaction registration in which the combined service side transaction state is in processing.
With reference to the first aspect or the first possible implementation manner of the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the updating, by the composite service side, the transaction state of the composite service side according to the received branch transaction result includes:
the combined service side calls the combined service of the branch transaction according to the received branch transaction processing result to update the branch transaction state of the combined service side;
judging whether the micro service corresponding to the branch transaction processing result is the last micro service of the branch transaction;
if so, updating the global transaction state of the combined service side, judging whether the branch transaction is the last branch transaction in the target transaction sequence list, if so, ending the transaction processing, and if not, jumping to the next sequential branch transaction;
if not, jumping to the micro service of the next sequence in the branch transaction.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the method further includes:
and if the combined service side does not receive the branch transaction processing result within the preset overtime threshold, updating the global transaction state of the combined service side.
With reference to the third possible implementation manner of the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the method further includes: judging whether the times of not receiving the branch transaction processing result exceed a preset time threshold value or not;
if yes, calling the backspacing micro-service, and modifying the branch transaction state of the combined service side into a compensated state;
inquiring whether the branch transaction state of the micro-service side is failure or not, and if so, performing compensation transaction processing;
determining that the compensation transaction is successful, modifying the branch transaction state of the micro-service side to be compensated, and executing the step of judging whether the micro-service corresponding to the branch transaction processing result is the last micro-service of the branch transaction;
if not, the micro-service corresponding to the branch transaction processing result is called again.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where after the updating of the state of the branch transaction at the combined service side is performed, before determining whether a micro service corresponding to a branch transaction processing result is a last micro service of the branch transaction, the method further includes:
if the branch transaction state of the combined service side is successfully updated, the step of judging whether the micro service corresponding to the branch transaction processing result is the last micro service of the branch transaction is executed;
if the branch transaction state of the combined service side is failed to be updated, calling a backspacing microservice, and modifying the branch transaction state of the combined service side to be compensated;
inquiring whether the branch transaction state of the micro-service side is failure or not, and if so, performing compensation transaction processing;
and determining that the compensation transaction is successful, modifying the branch transaction state of the micro-service side into compensated state, and executing the step of judging whether the micro-service corresponding to the branch transaction processing result is the last micro-service of the branch transaction.
With reference to the fifth possible implementation manner of the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where the method further includes:
and if the compensation transaction is determined to be unsuccessful, sending transaction abnormal information to preset maintenance personnel. .
In a second aspect, an embodiment of the present invention further provides an apparatus for processing a distributed transaction, including:
the transaction sequence query module is used for querying the mapping relation between the transaction and the transaction sequence table and acquiring a target transaction sequence table mapped by the transaction to be processed, wherein the target transaction sequence table comprises one or more branch transactions;
the first state registration module is used for performing first registration on the transaction state of the combined service side aiming at each branch transaction according to the sequence of each branch transaction in the target transaction sequence table, marking the transaction state of the combined service side as processing and executing the corresponding branch transaction;
the state second registration module is used for carrying out second registration on the transaction state of the micro-service side aiming at the micro-service to be called in the corresponding branch transaction, marking the transaction state of the micro-service side as processing, calling the corresponding micro-service and carrying out processing on the corresponding branch transaction;
a state first updating module, configured to update a micro-service side transaction state according to branch transaction processing after determining that the branch transaction processing is completed, and return the branch transaction processing result to the combined service side;
and the second state updating module is used for updating the transaction state of the combined service side by the combined service side according to the received branch transaction processing result.
In a third aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements the steps of the above method when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, performs the steps of the method described above.
According to the method, the device, the equipment and the storage medium for processing the distributed transactions provided by the embodiment of the invention, the target transaction sequence table mapped by the to-be-processed transaction is obtained by inquiring the mapping relation between the transaction and the transaction sequence table, wherein the target transaction sequence table comprises one or more branch transactions; according to the sequence of each branch transaction in the target transaction sequence list, aiming at each branch transaction, performing first registration on the transaction state of the combined service side, marking the transaction state of the combined service side as processing, and executing the corresponding branch transaction; aiming at the micro service to be called in the corresponding branch transaction, carrying out second registration on the transaction state of the micro service side, marking the transaction state of the micro service side as processing, calling the corresponding micro service, and carrying out processing on the corresponding branch transaction; after the branch transaction processing is determined to be completed, updating the transaction state of the micro-service side according to the branch transaction processing, and returning the branch transaction processing result to the combined service side; and the combined service side updates the transaction state of the combined service side according to the received branch transaction processing result. Therefore, the execution condition of the distributed transaction is recorded through a small number of transaction states, and the recorded transaction states are managed on the combined service side and the micro service side respectively, so that the distributed system can realize the management of transaction consistency and the consistency of transaction processing is improved; furthermore, the micro-service processing overhead when the transactions are inconsistent can be effectively reduced, so that the transaction processing resources are saved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
FIG. 1 is a flow chart illustrating a method for processing a distributed transaction according to an embodiment of the present invention;
fig. 2 is a schematic specific flowchart illustrating a method for processing a distributed transaction according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for processing a distributed transaction according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device 400 according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for processing a distributed transaction, which are described below by embodiments.
Fig. 1 is a flow chart illustrating a method for processing a distributed transaction according to an embodiment of the present invention. As shown in fig. 1, the method includes:
step 101, inquiring a mapping relation between a transaction and a transaction sequence table, and acquiring a target transaction sequence table mapped by the transaction to be processed, wherein the target transaction sequence table comprises one or more branch transactions;
in the embodiment of the invention, because the distributed system, such as a financial distributed system, completes the processing of the transaction by a plurality of micro services, and different micro services correspond to different modules, the transaction can be processed only by sequentially calling the micro services in the micro service sequence according to the micro service sequence predetermined for processing the transaction.
In the embodiment of the invention, the distributed system sets a transaction sequence table for processing the transaction for each transaction in advance. As an optional embodiment, in the transaction sequence table, a transaction implements multiple transactions under the transaction through a composite service and a micro-service provided by a server in the distributed system, the composite service corresponding to the transaction extends along a distributed transaction line, each micro-service corresponding to the composite service is connected to the composite service through the distributed transaction line to form a first stage, other micro-services connected to the micro-service through the distributed transaction line form a second stage, each composite service and each micro-service corresponding to the composite service form a branch transaction, one branch transaction includes one composite service and one or more micro-services, a calling order exists among the multiple micro-services, and one transaction corresponds to one or more branch transactions.
In the embodiment of the invention, the combined service is used for providing a calling interface for the micro-service, and the micro-service can be called through the combined service. The combined service is provided by the combined service side and the platform side of the distributed system, and the micro service is provided by the micro service side of the distributed system. The combined service side can acquire the calling condition of the transaction, and the micro-service side can acquire the transaction processing condition of the current micro-service.
In the embodiment of the invention, one transaction (service) comprises one or more transactions, and a plurality of transactions can be processed through a distributed system. As an alternative embodiment, the transaction comprises: the system comprises a global transaction, a platform side transaction and a micro-service side transaction, wherein the combined service processes the global transaction and the platform side transaction, and the micro-service processes the micro-service side transaction.
In the embodiment of the invention, different phases of the transaction have different transaction states in the processing process. As an alternative embodiment, the transaction state includes: in-process, success, failure, timeout unknown, compensated, wherein,
in-process refers to an in-progress state;
success refers to a successfully operating state;
failure refers to a state of failed operation;
the timeout unknown refers to a state that no response is received within a specified time range;
compensated refers to a state that kicks back and succeeds against the success state.
In the embodiment of the present invention, the transaction state enumeration items respectively related to the global transaction, the platform side transaction, and the micro service side transaction are shown in table 1.
TABLE 1
Transaction state In the process of Successful Failure of Time-out unknown Has been compensated for
Global transactions Is provided with Is provided with Is provided with Is provided with Is composed of
Platform side transactions Is provided with Is provided with Is provided with Is provided with Is provided with
Microservice transactions Is provided with Is provided with Is provided with Is free of Is provided with
In table 1, the transaction states corresponding to the global transaction include: during processing, success, failure and unknown overtime do not contain compensation;
the transaction state corresponding to the platform side transaction comprises the following steps: in-process, success, failure, unknown timeout, compensated;
the transaction state corresponding to the transaction at the microserver side comprises the following steps: in-process, success, failure, compensated, not including timeout unknown.
102, according to the sequence of each branch transaction in the target transaction sequence table, performing first registration on the transaction state of the combined service side for each branch transaction, marking the transaction state of the combined service side as processing, and executing the corresponding branch transaction;
in the embodiment of the invention, the server in the distributed system processes the branch transaction by calling the combined service or the microservice. As an alternative embodiment, taking a transaction as a deposit-due, the combined service is used to provide a unified interactive interface for the deposit-due, and the corresponding branch transaction includes: the method comprises the following steps of combined service, account deposit check micro service, cash voucher receiving micro service and cash deposit micro service, wherein the calling sequence of each service in the branch transaction is as follows: combinational services, account deposit check micro-services, cash voucher receipt micro-services, and cash deposit micro-services.
In this embodiment of the present invention, as an optional embodiment, the first registering a transaction state of a combined service side includes:
judging whether the service for carrying out the first registration is a combined service in the branch transaction;
if yes, calling the combined service to perform the global transaction registration and the branch transaction registration in the process of the combined service side transaction state, and if not, calling the combined service in the branch transaction to perform the branch transaction registration in the process of the combined service side transaction state.
In the embodiment of the present invention, as an optional embodiment, the global transaction register is used to perform global transaction registration, and the composite service side branch transaction register is used to perform composite service side branch transaction registration, and the transaction status in the global transaction register and the composite service side branch transaction register is set and processed.
In the embodiment of the invention, in the transaction execution process, a combined service side performs combined service pretreatment before calling a micro service, specifically, for the first execution of a branch transaction, namely, for the combined service of which the service to be called is the branch transaction, the combined service is called to perform global transaction register and combined service side branch transaction register, in the global transaction register, the transaction state is set to 0 (in processing), in the combined service side branch transaction register, the micro service code is default to PT, which represents a platform side transaction, and the transaction state is set to 0 (in processing); for the micro-service under the combined service in which the branch transaction is not executed for the first time, that is, the service to be called is the branch transaction, the combined service calling the branch transaction registers the branch transaction on the combined service side, in the branch transaction register on the combined service side, the micro-service code is PT by default and represents the platform side transaction, the transaction state is set to 0 (in processing), and the registration of the global transaction register is not performed.
In the embodiment of the present invention, as an alternative embodiment, a global transaction register is shown in table 2, and a combined service side branch transaction register is shown in table 3.
TABLE 2
Figure BDA0003961315600000091
Figure BDA0003961315600000101
TABLE 3
Figure BDA0003961315600000102
In tables 2 and 3, for the same branch transaction, the global transaction number is the same, the service code, the service flow global ID, the module code, the microservice code, and the node execution sequence are the call sequence of each service (combination service, microservice) predetermined according to the transaction to be processed, the transaction date is the date of processing the target transaction, the start time is the time of calling the service, the finish time is the time of calling the service to finish the transaction processing, the transaction processing is completed and then the index is described as a keyword word for indexing the table.
103, aiming at the micro service to be called in the corresponding branch transaction, performing second registration on the transaction state of the micro service side, marking the transaction state of the micro service side as in processing, calling the corresponding micro service, and performing processing of the corresponding branch transaction;
in the embodiment of the invention, the transaction state registration of the combined service side is processed by the combined service of the branch transaction, after the transaction state registration of the combined service is finished, the micro service in the branch transaction is called to perform the branch transaction processing, before the micro service performs the transaction processing, the pre-processing of the micro service is performed, namely, the registration of 'micro service side branch transaction register' is performed on the micro service side, the transaction state is 0 (in processing), and after the transaction state registration of the micro service side is finished, the normal branch transaction processing is performed. The structure and content of the branch transaction register on the microservice side are the same as those of the branch transaction register on the composite service side, so that the subsequent transaction consistency verification can be carried out.
Step 104, after determining that the branch transaction processing is completed, updating the transaction state of the micro-service side according to the branch transaction processing, and returning the branch transaction processing result to the combined service side;
in the embodiment of the invention, after the branch transaction is processed and before the branch transaction processing result is returned, the micro-service post-processing is firstly carried out, namely, the transaction state in the branch transaction register at the micro-service side is modified according to the branch transaction processing result. For example, if the result of the branch transaction is that the transaction is successful, the transaction status is modified to 1 (success), and if the result of the branch transaction is that the transaction is failed, the transaction status is modified to 2 (failure). And after the transaction state is modified, returning the branch transaction processing result to the combined service of the combined service side.
And 105, the combined service side updates the transaction state of the combined service side according to the received branch transaction processing result.
In this embodiment, as an optional embodiment, the updating, by the composite service side according to the received branch transaction processing result, the transaction state of the composite service side includes:
the combined service side calls the combined service of the branch transaction according to the received branch transaction processing result to update the branch transaction state of the combined service side;
judging whether the micro service corresponding to the branch transaction processing result is the last micro service of the branch transaction;
if yes, updating the global transaction state of the combined service side, judging whether the branch transaction is the last branch transaction in the target transaction sequence table, if yes, ending the transaction processing, and if not, jumping to the next sequential branch transaction;
if not, jumping to the micro service of the next sequence in the branch transaction.
In the embodiment of the invention, after receiving the branch transaction processing result, the combined service side firstly carries out combined service post-processing, namely calling the combined service, and the combined service modifies the transaction state in the combined service side branch transaction register according to the returned branch transaction processing result. For example, if the branch transaction results in a successful transaction, the transaction state is modified to 1 (successful), if the branch transaction results in a failed transaction, the transaction state is modified to 2 (failed), and if the call micro-service times out, the transaction state is modified to 3 (time out unknown).
In the embodiment of the invention, after the combined service side branch transaction state is updated, the combined service judges whether the micro service corresponding to the branch transaction processing result is the last micro service of the branch transaction, and if the micro service is the last micro service, the transaction state in the global transaction register is modified. For example, if the branch transaction results in a successful transaction, the transaction status in the global transaction registry is modified to 1 (successful), and if the branch transaction results in a failed transaction, the transaction status in the global transaction registry is modified to 2 (failed).
In the embodiment of the invention, after the micro service corresponding to the branch transaction processing result is judged to be the last micro service of the branch transaction, whether the branch service is the last branch transaction in the target transaction sequence table is judged, if yes, the transaction processing is ended, if not, the next sequence of branch transactions is skipped to, and the step of registering the combined service side transaction state in the processing is executed until all branch transactions are executed.
In this embodiment, as an optional embodiment, the method further includes:
and if the combined service side does not receive the branch transaction processing result within the preset overtime threshold, updating the global transaction state of the combined service side.
In the embodiment of the invention, if the transaction state is timeout, the global transaction state of the combined service side is modified to be 3 (timeout unknown).
In this embodiment, as another optional embodiment, the method further includes:
judging whether the times of not receiving the branch transaction processing result exceed a preset time threshold value or not;
if yes, calling the backspacing micro-service, and modifying the branch transaction state of the combined service side into a compensated state;
inquiring whether the branch transaction state of the micro-service side is failure or not, and if so, performing compensation transaction processing;
determining that the compensation transaction is successful, modifying the branch transaction state of the micro-service side to be compensated, and executing the step of judging whether the micro-service corresponding to the branch transaction processing result is the last micro-service of the branch transaction;
if not, the micro service corresponding to the branch transaction processing result is called again.
In this embodiment of the present invention, as an optional embodiment, after updating the state of the branch transaction at the combined service side, before determining whether the micro service corresponding to the branch transaction processing result is the last micro service of the branch transaction, the method further includes:
if the branch transaction state of the combined service side is successfully updated, the step of judging whether the micro service corresponding to the branch transaction processing result is the last micro service of the branch transaction is executed;
if the branch transaction state of the combined service side is updated to be failed, calling backspacing micro-service and modifying the branch transaction state of the combined service side to be compensated;
inquiring whether the branch transaction state of the micro-service side is failure or not, and if so, performing compensation transaction processing;
and determining that the compensation transaction is successful, modifying the branch transaction state of the micro-service side to be compensated, and executing the step of judging whether the micro-service corresponding to the branch transaction processing result is the last micro-service of the branch transaction.
In the embodiment of the invention, if the micro-service fails to execute the branch transaction, transaction rollback processing is carried out, and the combined service calls the rollback micro-service according to the returned branch transaction processing result. At the same time, the transaction state in the "Combined service side Branch transaction registry" is modified to 4 (compensated), characterizing the invoked rollback. The microservice queries a microservice side branch transaction register to carry out transaction verification so as to determine whether the microservice side branch transaction register is a compensation transaction, and if the transaction state in the microservice side branch transaction register is failure, compensation transaction processing is carried out; if not, an error prompt is carried out to carry out manual transaction processing.
In the embodiment of the invention, the micro service determines that the compensation transaction is successful, and modifies the transaction state in the micro service side branch transaction register to be 4 (compensated).
In the embodiment of the invention, the compensation transaction executed by the backspace micro service is used for compensating the result generated by the branch transaction operation. As an optional embodiment, taking the current deposit as an example, when the cash deposit micro-service is failed to be called, the cash voucher payment rollback micro-service is called, a rollback operation of a transaction is executed to update the cash voucher stored in the voucher database corresponding to the cash voucher payment micro-service, after the cash voucher payment rollback micro-service is successfully called, the account deposit check rollback micro-service is called again, and a rollback operation of a transaction is executed to update the account information stored in the account database corresponding to the account deposit check micro-service.
In this embodiment of the present invention, as an optional embodiment, the method further includes:
and determining that the compensation transaction is unsuccessful, and sending transaction abnormal information to preset maintenance personnel.
In the embodiment of the invention, as an optional embodiment, if the compensation transaction fails, the transaction state in the branch transaction register at the microservice side is not modified, and information is sent to carry out manual processing; as another alternative, if the compensating transaction fails, the transaction status in the microserver side branch transaction registry may also be modified to 3 (timeout unknown).
In the embodiment of the invention, the rollback success and failure states are registered at the micro-service side.
According to the distributed transaction processing method, when the micro-service is called to execute the distributed transaction, the transaction state is registered on the combined service side and the micro-service side of the distributed system respectively, and after the distributed transaction is executed, the transaction state is updated on the combined service side and the micro-service side respectively. Therefore, complete execution condition recording of distributed transactions and calling condition recording among micro services are achieved through a small number of transaction states, the technical scheme for recording the transaction execution conditions among the distributed systems is clarified, the recorded transaction states are managed on the combined service side and the micro service side respectively to determine the consistency of transaction state change, the distributed systems can achieve management of transaction consistency, the consistency of transaction processing is improved, the final consistency of service data is guaranteed, further, when the transactions are found to be inconsistent, micro service processing of inconsistent transactions can be interrupted in time, and transaction processing resources are saved.
Fig. 2 is a schematic specific flowchart illustrating a method for processing a distributed transaction according to an embodiment of the present invention. As shown in fig. 2, the method includes:
step 201, calling a combination service to perform branch transaction preprocessing;
in the embodiment of the invention, the branch transactions which are sequentially processed are determined according to the mapping relation between the pre-stored transaction and the transaction sequence table, and the branch transactions are preprocessed.
Step 202, judging whether the transaction is the first branch transaction, if so, executing step 203, and if not, executing step 204;
in the embodiment of the invention, the processing flows are different for the first branch transaction and the following branch transaction.
Step 203, registering a transaction state value of 0 in the global transaction register, and executing step 206;
in the embodiment of the present invention, a global transaction register is performed using a global transaction register, and a transaction status value is registered as 0, indicating that processing is in progress.
Step 204, determining whether the micro service is a compensation micro service, if not, executing step 205, and if so, executing step 206;
in the embodiment of the invention, for the first execution of the branch transaction (uncompensated microservice), the registration of the branch transaction register at the combined service side is also needed.
Step 205, registering the transaction state in the combined service side branch transaction register;
in the embodiment of the present invention, in the "composite service side branch transaction register", the transaction status value is set to 0, indicating that processing is in progress.
Step 206, calling the micro-service through the combined service;
step 207, performing micro-service preprocessing;
in the embodiment of the invention, before the micro-service is called to carry out transaction processing, the micro-service is firstly processed.
Step 208, determining whether the micro service is a compensation micro service, if not, executing step 209, and if so, executing step 210;
step 209, registering the transaction state in the branch transaction register book of the microservice side;
in the embodiment of the present invention, in the microserver-side branch transaction registry, the transaction status value is set to 0, indicating that the processing is in progress.
Step 210, performing branch transaction processing;
in the embodiment of the present invention, processing a branch transaction to obtain a branch transaction processing result (transaction state) includes: in-process, success, failure, timeout unknown, compensated.
Step 211, performing microservice post-processing;
in the embodiment of the invention, before returning the branch transaction processing result, the micro-service post-processing is carried out, which comprises the following steps: the method comprises the following steps: in-process, success, failure, compensated.
Step 212, determining whether the transaction processing result is successful, if yes, executing step 213, otherwise, executing step 216;
in the embodiment of the present invention, for the case that the transaction processing result is successful or failed, post-processing needs to be performed respectively.
Step 213, determining whether compensation for microservice is required, if yes, go to step 214, otherwise go to step 215;
in the embodiment of the invention, the transaction state values in the branch transaction register at the microservice side are modified differently for microservices needing compensation and microservices not needing compensation.
Step 214, modify the transaction status value in "branch transaction register at microservice side" to 4, execute step 218;
in the embodiment of the invention, the transaction state value is modified to be 4, which indicates that compensation is performed.
Step 215, modify the transaction status value in "branch transaction register of microservice side" to 1, execute step 218;
in the embodiment of the invention, the transaction state value is modified to be 1, which indicates that the transaction processing is successful.
Step 216, determining whether to compensate the microservice, if yes, executing step 217, and if not, executing step 218;
step 217, modifying the transaction state value in the branch transaction register of the microservice side to be 2, and executing step 218;
in the embodiment of the invention, the transaction state value is modified to be 2, which indicates that the transaction processing fails.
Step 218, assembling a microservice return message based on the transaction result;
in the embodiment of the invention, the micro-service return message is sent to the combined service side.
Step 219, performing combined service post-processing;
in the embodiment of the invention, the combined service side performs post-processing according to the transaction processing result contained in the received micro-service return message.
Step 220, judging whether the time is out, if yes, executing step 233, and if not, executing step 221;
in the embodiment of the invention, whether the time for processing the transaction is overtime is judged.
Step 221, determining whether the transaction is successful, if yes, performing step 222, and if not, performing step 228;
in the embodiment of the invention, the transaction processing result contained in the micro-service return message is extracted, and whether the transaction processing result is successful or not is determined.
Step 222, judging whether compensation is needed, if yes, executing step 223, and if not, executing step 226;
step 223, modifying the transaction state value in the "branch transaction register at combined service side" to 4;
in the embodiment of the present invention, the modified transaction status value is 4, which indicates that compensation has been performed, and it is determined that the branch transaction is completed.
Step 224, determining the end of compensation, and returning to the global state value of 4;
in the embodiment of the invention, the transaction state value in the global transaction register is modified to be 4.
Step 225, amending the transaction state value in the global transaction register to be 2, and executing step 236;
in the embodiment of the present invention, the transaction status value is 2, which indicates that the transaction processing result is a failure.
Step 226, modifying the transaction status value in the "Combined service side Branch transaction registry" to 1;
in the embodiment of the invention, the transaction state value is 1, which indicates that the transaction processing result is successful, and the branch transaction processing is determined to be finished.
Step 227, modifying the transaction state value in the global transaction register to be 1, and executing step 236;
in the embodiment of the invention, after the transaction state value in the global transaction register is modified to be 1, the branch transaction is determined to be ended.
Step 228, determining whether to compensate, if yes, executing step 229, and if no, executing step 231;
step 229, modify the transaction status value in "Combined service side Branch transaction registry" to 4;
in the embodiment of the invention, after the modified transaction state value is 4, the branch transaction processing is finished.
Step 230, modifying the transaction status value in the global transaction register to be 2, and executing step 236;
step 231, modifying the transaction state value in the "branch transaction register at combined service side" to 2;
in the embodiment of the invention, after the transaction state value in the combined service side branch transaction register is modified to be 2, the branch transaction processing flow is ended.
Step 232, calling compensation transaction, circulating branch transaction, and executing step 236;
in the embodiment of the invention, the branch transaction processing is executed circularly until the last branch transaction is processed.
Step 233, determine whether to compensate the transaction, if yes, go to step 234, if no, go to step 235;
step 234, amending the transaction state value in the global transaction register to be 3, and executing step 236;
in the embodiment of the present invention, after the transaction state value in the "branch transaction register at combined service side" is updated to 3, it indicates that the transaction processing result is unknown due to timeout, and the branch transaction processing flow is ended.
Step 235, amending the transaction status value in the "combination service side branch transaction register" to be 3, amending the transaction status value in the "global transaction register" to be 3, and executing step 236;
in the embodiment of the present invention, for the case of transactions that do not need to be compensated, after the transaction status values in the "branch transaction register at combinational service side" and the "global transaction register" need to be updated to be 3, it indicates that the timeout is unknown, and the branch transaction processing flow is ended.
At step 236, the transaction ends.
Fig. 3 is a schematic structural diagram illustrating an apparatus for processing a distributed transaction according to an embodiment of the present invention. As shown in fig. 3, the apparatus includes:
the transaction sequence query module 301 is configured to query a mapping relationship between a transaction and a transaction sequence table, and obtain a target transaction sequence table mapped by the transaction to be processed, where the target transaction sequence table includes one or more branch transactions;
in the embodiment of the invention, the transaction realizes a plurality of transaction processing under the transaction through the combined service and the micro-service provided by the distributed system, each combined service and each micro-service corresponding to the combined service form a branch transaction, one branch transaction comprises one combined service and one or more micro-services, the micro-services have a calling sequence, and one transaction corresponds to one or more branch transactions.
A state first registration module 302, configured to perform first registration on a combined service side transaction state for each branch transaction according to each branch transaction sequence in the target transaction sequence table, and mark the combined service side transaction state as processing, and execute a corresponding branch transaction;
in this embodiment of the present invention, as an optional embodiment, the state first registration module 302 is specifically configured to:
judging whether the service for carrying out the first registration is a combined service in the branch transaction;
if yes, calling the combined service to perform global transaction registration and branch transaction registration in which the combined service side transaction state is in processing, and if not, calling the combined service in the branch transaction to perform branch transaction registration in which the combined service side transaction state is in processing.
In this embodiment of the present invention, as an optional embodiment, the transaction state includes: in-process, success, failure, unknown timeout, compensated.
A second state registration module 303, configured to perform second registration on the transaction state of the microservice side for the microservice to be called in the corresponding branch transaction, mark the transaction state of the microservice side as processing, call the corresponding microservice, and perform processing of the corresponding branch transaction;
in the embodiment of the invention, after the transaction state registration of the combined service is finished, the micro service in the branch transaction is called to perform branch transaction processing, before the micro service performs the transaction processing, the micro service side branch transaction register is registered on the micro service side, the transaction state is 0 (in processing), and after the transaction state registration of the micro service side is finished, the normal branch transaction processing is performed.
A state first updating module 304, configured to update a micro-service side transaction state according to branch transaction processing after determining that the branch transaction processing is completed, and return the branch transaction processing result to the combined service side;
in the embodiment of the invention, before the branch transaction is processed and the branch transaction processing result is returned, the transaction state in the branch transaction register on the microserver side is modified according to the branch transaction processing result. And after the transaction state is modified, returning a branch transaction processing result to the combined service of the combined service side.
A second state updating module 305, configured to update the transaction state of the composite service side according to the received branch transaction processing result.
In this embodiment of the present invention, as an optional embodiment, the second status updating module 305 includes:
a second state updating unit (not shown in the figure), configured to invoke the combined service of the branch transaction according to the received branch transaction processing result, and update the branch transaction state of the combined service side;
the first judging unit is used for judging whether the micro service corresponding to the branch transaction processing result is the last micro service of the branch transaction;
if yes, updating the global transaction state of the combined service side, and judging whether the branch transaction is the last branch transaction in the target transaction sequence list, if yes, ending the transaction processing, and if not, jumping to the next sequential branch transaction;
and if not, jumping to the next sequential micro-service in the branch transaction.
In this embodiment of the present invention, as another optional embodiment, the second status updating module 305 further includes:
and the overtime processing unit is used for updating the global transaction state of the combined service side if the combined service side does not receive the branch transaction processing result within the preset overtime threshold.
In this embodiment of the present invention, as a further optional embodiment, the second status updating module 305 further includes:
the compensation unit is used for judging whether the times of not receiving the branch transaction processing result exceed a preset time threshold value or not;
if yes, calling a backspacing micro-service, and modifying the branch transaction state of the combined service side into a compensated state;
inquiring whether the branch transaction state of the micro-service side is failure or not, and if so, performing compensation transaction processing;
determining that the compensation transaction is successful, modifying the branch transaction state of the micro-service side to be compensated, and executing the step of judging whether the micro-service corresponding to the branch transaction processing result is the last micro-service of the branch transaction;
if not, the micro-service corresponding to the branch transaction processing result is called again.
In this embodiment of the present invention, as another optional embodiment, the state second updating module 305 further includes:
the backspacing processing unit executes the step of judging whether the micro service corresponding to the branch transaction processing result is the last micro service of the branch transaction if the branch transaction state of the combined service side is updated successfully;
if the branch transaction state of the combined service side is failed to be updated, calling a backspacing microservice, and modifying the branch transaction state of the combined service side to be compensated;
inquiring whether the branch transaction state of the micro-service side is failure or not, and if so, performing compensation transaction processing;
and determining that the compensation transaction is successful, modifying the branch transaction state of the micro-service side to be compensated, and executing the step of judging whether the micro-service corresponding to the branch transaction processing result is the last micro-service of the branch transaction.
As shown in fig. 4, an embodiment of the present application provides a computer device 400, configured to execute the method for processing a distributed transaction in fig. 1, where the device includes a memory 401, a processor 402 connected to the memory 401 through a bus, and a computer program stored in the memory 401 and running on the processor 402, where the processor 402 implements the steps of the method for processing a distributed transaction when executing the computer program.
Specifically, the memory 401 and the processor 402 can be general-purpose memories and processors, which are not limited in particular, and when the processor 402 runs the computer program stored in the memory 401, the method for processing the distributed transaction can be executed.
Corresponding to the method for processing distributed transactions in fig. 1, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program performs the steps of the method for processing distributed transactions.
In particular, the storage medium can be a general-purpose storage medium, such as a removable disk, a hard disk, etc., and when the computer program on the storage medium is executed, the method for processing distributed transactions can be executed.
In the embodiments provided in the present application, it should be understood that the disclosed system and method may be implemented in other ways. The above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and there may be other divisions in actual implementation, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of systems or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures, and moreover, the terms "first," "second," "third," etc. are used merely to distinguish one description from another, and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used to illustrate the technical solutions of the present application, but not to limit the technical solutions, and the scope of the present application is not limited to the above-mentioned embodiments, although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the present disclosure, which should be construed in light of the above teachings. Are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of processing a distributed transaction, comprising:
inquiring the mapping relation between the transaction and the transaction sequence table, and acquiring a target transaction sequence table mapped by the transaction to be processed, wherein the target transaction sequence table comprises one or more branch transactions;
according to the sequence of each branch transaction in the target transaction sequence list, aiming at each branch transaction, performing first registration on the transaction state of the combined service side, marking the transaction state of the combined service side as processing, and executing the corresponding branch transaction;
aiming at the micro service to be called in the corresponding branch transaction, carrying out second registration on the transaction state of the micro service side, marking the transaction state of the micro service side as processing, calling the corresponding micro service, and carrying out processing on the corresponding branch transaction;
after the branch transaction processing is determined to be completed, updating the transaction state of the micro-service side according to the branch transaction processing, and returning the branch transaction processing result to the combined service side;
and the combined service side updates the transaction state of the combined service side according to the received branch transaction processing result.
2. The method of claim 1, wherein the first registering the composite service side transaction state comprises:
judging whether the service for carrying out the first registration is a combined service in the branch transaction;
if yes, calling the combined service to perform the global transaction registration and the branch transaction registration in the process of the combined service side transaction state, and if not, calling the combined service in the branch transaction to perform the branch transaction registration in the process of the combined service side transaction state.
3. The method according to claim 1 or 2, wherein the updating the transaction state of the combined service side according to the received branch transaction result by the combined service side comprises:
the combined service side calls the combined service of the branch transaction according to the received branch transaction processing result to update the branch transaction state of the combined service side;
judging whether the micro service corresponding to the branch transaction processing result is the last micro service of the branch transaction;
if yes, updating the global transaction state of the combined service side, judging whether the branch transaction is the last branch transaction in the target transaction sequence table, if yes, ending the transaction processing, and if not, jumping to the next sequential branch transaction;
if not, jumping to the micro service of the next sequence in the branch transaction.
4. The method of claim 3, further comprising:
and if the combined service side does not receive the branch transaction processing result within the preset overtime threshold, updating the global transaction state of the combined service side.
5. The method of claim 4, further comprising:
judging whether the times of not receiving the branch transaction processing results exceed a preset time threshold value or not;
if yes, calling a backspacing micro-service, and modifying the branch transaction state of the combined service side into a compensated state;
inquiring whether the branch transaction state of the micro-service side is failure or not, and if so, performing compensation transaction processing;
determining that the compensation transaction is successful, modifying the branch transaction state of the micro-service side to be compensated, and executing the step of judging whether the micro-service corresponding to the branch transaction processing result is the last micro-service of the branch transaction;
if not, the micro-service corresponding to the branch transaction processing result is called again.
6. The method according to claim 3, wherein after the updating of the combined service side branch transaction state, before determining whether the micro-service corresponding to the branch transaction processing result is the last micro-service of the branch transaction, the method further comprises:
if the branch transaction state of the combined service side is updated successfully, the step of judging whether the micro service corresponding to the branch transaction processing result is the last micro service of the branch transaction is executed;
if the branch transaction state of the combined service side is updated to be failed, calling backspacing micro-service and modifying the branch transaction state of the combined service side to be compensated;
inquiring whether the branch transaction state of the micro-service side is failure or not, and if so, performing compensation transaction processing;
and determining that the compensation transaction is successful, modifying the branch transaction state of the micro-service side to be compensated, and executing the step of judging whether the micro-service corresponding to the branch transaction processing result is the last micro-service of the branch transaction.
7. The method of claim 6, further comprising:
and if the compensation transaction is determined to be unsuccessful, sending transaction abnormal information to preset maintenance personnel.
8. An apparatus for processing a distributed transaction, comprising:
the transaction sequence query module is used for querying the mapping relation between the transaction and the transaction sequence table and acquiring a target transaction sequence table mapped by the to-be-processed transaction, wherein the target transaction sequence table comprises one or more branch transactions;
the first state registration module is used for performing first registration on the transaction state of the combined service side aiming at each branch transaction according to the sequence of each branch transaction in the target transaction sequence table, marking the transaction state of the combined service side as processing and executing the corresponding branch transaction;
the state second registration module is used for performing second registration on the transaction state of the micro-service side aiming at the micro-service to be called in the corresponding branch transaction, marking the transaction state of the micro-service side as processing, calling the corresponding micro-service and performing processing of the corresponding branch transaction;
a state first updating module, configured to update a micro-service side transaction state according to branch transaction processing after determining that the branch transaction processing is completed, and return the branch transaction processing result to the combined service side;
and the second state updating module is used for updating the transaction state of the combined service side by the combined service side according to the received branch transaction processing result.
9. A computer device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when a computer device is run, the machine-readable instructions when executed by the processor performing the steps of the method of processing distributed transactions according to any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program for performing, when executed by a processor, the steps of a method of processing distributed transactions according to any one of claims 1 to 7.
CN202211484166.6A 2022-11-24 2022-11-24 Method, device, equipment and storage medium for processing distributed transaction Pending CN115729946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211484166.6A CN115729946A (en) 2022-11-24 2022-11-24 Method, device, equipment and storage medium for processing distributed transaction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211484166.6A CN115729946A (en) 2022-11-24 2022-11-24 Method, device, equipment and storage medium for processing distributed transaction

Publications (1)

Publication Number Publication Date
CN115729946A true CN115729946A (en) 2023-03-03

Family

ID=85298066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211484166.6A Pending CN115729946A (en) 2022-11-24 2022-11-24 Method, device, equipment and storage medium for processing distributed transaction

Country Status (1)

Country Link
CN (1) CN115729946A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106503132A (en) * 2016-10-19 2017-03-15 广州快塑电子商务有限公司 A kind of distributed transaction management method and system
WO2018103318A1 (en) * 2016-12-06 2018-06-14 上海壹账通金融科技有限公司 Distributed transaction handling method and system
CN108519918A (en) * 2018-03-14 2018-09-11 广东能龙教育股份有限公司 Distributed transaction processing method based on transaction chain
WO2019047752A1 (en) * 2017-09-08 2019-03-14 阿里巴巴集团控股有限公司 Non-relational database transaction processing method, apparatus and electronic device
US20200117730A1 (en) * 2018-10-16 2020-04-16 Microsoft Technology Licensing, Llc Database management
US20200226011A1 (en) * 2019-01-14 2020-07-16 Fast River Technologies Inc. Policy-based distributed transactional processing in a distributed system
CN112925614A (en) * 2021-03-04 2021-06-08 杭州网易云音乐科技有限公司 Distributed transaction processing method, device, medium and equipment
CN113111077A (en) * 2021-04-16 2021-07-13 中国工商银行股份有限公司 Consistency control method, consistency control device, electronic equipment, consistency control medium and program product
CN113760924A (en) * 2020-10-28 2021-12-07 北京沃东天骏信息技术有限公司 Distributed transaction processing method and device
CN114253673A (en) * 2021-12-17 2022-03-29 中电金信软件有限公司 Transaction processing method and transaction processing device of distributed system
CN114371918A (en) * 2022-01-10 2022-04-19 中国工商银行股份有限公司 Distributed transaction processing method and device, storage medium and electronic equipment
CN114741162A (en) * 2022-04-27 2022-07-12 中国银行股份有限公司 Service arranging method, device, storage medium and equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106503132A (en) * 2016-10-19 2017-03-15 广州快塑电子商务有限公司 A kind of distributed transaction management method and system
WO2018103318A1 (en) * 2016-12-06 2018-06-14 上海壹账通金融科技有限公司 Distributed transaction handling method and system
WO2019047752A1 (en) * 2017-09-08 2019-03-14 阿里巴巴集团控股有限公司 Non-relational database transaction processing method, apparatus and electronic device
CN108519918A (en) * 2018-03-14 2018-09-11 广东能龙教育股份有限公司 Distributed transaction processing method based on transaction chain
US20200117730A1 (en) * 2018-10-16 2020-04-16 Microsoft Technology Licensing, Llc Database management
US20200226011A1 (en) * 2019-01-14 2020-07-16 Fast River Technologies Inc. Policy-based distributed transactional processing in a distributed system
CN113760924A (en) * 2020-10-28 2021-12-07 北京沃东天骏信息技术有限公司 Distributed transaction processing method and device
CN112925614A (en) * 2021-03-04 2021-06-08 杭州网易云音乐科技有限公司 Distributed transaction processing method, device, medium and equipment
CN113111077A (en) * 2021-04-16 2021-07-13 中国工商银行股份有限公司 Consistency control method, consistency control device, electronic equipment, consistency control medium and program product
CN114253673A (en) * 2021-12-17 2022-03-29 中电金信软件有限公司 Transaction processing method and transaction processing device of distributed system
CN114371918A (en) * 2022-01-10 2022-04-19 中国工商银行股份有限公司 Distributed transaction processing method and device, storage medium and electronic equipment
CN114741162A (en) * 2022-04-27 2022-07-12 中国银行股份有限公司 Service arranging method, device, storage medium and equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
李经纬;韩树河;: "基于微服务和TCC分布式事务的在线教育平台设计方法研究", 南通航运职业技术学院学报, no. 02, 25 June 2020 (2020-06-25) *
杨成荣;刘峻松;孙新杰;吴超;: "基于微服务架构的数据一致性方法研究", 电脑知识与技术, no. 08, 15 March 2020 (2020-03-15) *
连城;: "浅谈分布式事务实现技术及应用场景探讨", 信息技术与信息化, no. 10, 25 October 2018 (2018-10-25) *

Similar Documents

Publication Publication Date Title
CN110764942B (en) Multi-kind data verification method, device, computer system and readable storage medium
KR102151326B1 (en) Data processing method and device
CN107633016B (en) Data processing method and device and electronic equipment
CN107169767B (en) Transaction processing method and system
CN107016613B (en) Data modification method and device
CN115729946A (en) Method, device, equipment and storage medium for processing distributed transaction
CN115719274A (en) Control method, device, equipment and storage medium for distributed transaction
CN106776052B (en) Shared resource access method and device
CN111127088B (en) Method, device, computer equipment and storage medium for realizing final consistency
CN110765144B (en) Distributed heterogeneous database data processing method and device
CN113239064A (en) Database updating method and device, electronic equipment and storage medium
CN112131100A (en) Metadata-based front-end and back-end verification method and device
CN109582330B (en) Data model upgrading method, device, equipment and readable storage medium
CN112419052A (en) Transaction testing method and device, electronic equipment and readable storage medium
CN112052262A (en) Method and device for displaying payment order processing line and electronic equipment
CN111124478A (en) Version management method and device
CN111382063B (en) Method and device for verifying compact compatibility
CN116150037B (en) Method and device for managing user login state in use case
CN116684381A (en) Port replacement method, device, computer equipment and readable storage medium
CN117172897A (en) Life cycle management method and device, electronic equipment and storage medium
CN117648101A (en) Gray scale release method based on credit card marketing system
CN112199413A (en) Service request execution method, device, electronic equipment and storage medium
CN117407188A (en) Pluggable micro-service transaction method and system based on Dubbo framework
CN116627814A (en) Service processing method and device, storage medium and electronic device
CN115048439A (en) Data conversion method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination