Method and device for processing distributed transactions

A distributed transaction, the only technology, applied in the computer field, can solve the problems that system managers cannot view and monitor the distributed transaction process, cannot accurately locate the abnormal position, cannot accurately locate the system scene, etc., to facilitate daily monitoring and maintenance , reduce operation and maintenance costs and labor costs, and standardize the processing process

CN112445860APending Publication Date: 2021-03-05BEIJING JINGDONG ZHENSHI INFORMATION TECH CO LTD
8 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2021-03-05

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a method and device for processing distributed transactions, and relates to the technical field of computers. One specific embodiment of the method comprises the steps of developing a service logic interface according to a preset interface specification, enabling the service logic interface to achieve a logic verification function, a synchronous execution function and an asynchronous compensation function, wherein the interface specification comprises an input parameter specification; when the service logic interface is called, verifying an input parameter of the service logic interface by using a logic verification function according to the input parameter specification; when the verification is passed, processing the distributed transaction by using a synchronousexecution function; and processing the distributed transaction by using an asynchronous compensation function after the synchronous execution function is executed abnormally and a specified number oftimes of retry is carried out. According to the implementation mode, the distributed transaction processing process can be more standardized, later code reconstruction is facilitated, the abnormal position can be conveniently and accurately positioned, the problem troubleshooting efficiency is improved, the operation and maintenance cost and the labor cost are reduced, and meanwhile system resources can be saved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of computer technology, in particular to a method and device for processing distributed transactions. Background technique

[0002] Now, an era of large-scale production, application and sharing of data has begun. The traditional architecture of deploying all business system modules to one or more servers obviously cannot meet the requirements. This requires us to separate the business system modules, and deploy these systems separately on multiple servers by category. They communicate with each other through agreed protocols, and distributed systems emerge as the times require.

[0003] Distributed systems can improve response speed and processing efficiency, but at the same time, a series of distributed problems also arise. The most typical problem is the distributed transaction problem, because multiple systems are stateless and independent of each other. This increases the difficulty of daily system monitoring ...

Examples

Embodiment Construction

[0035] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0036] In the existing distributed transaction processing method, the transaction processing logic and the business verification logic code are written together. Although the development is relatively simple, it is not conducive to the later maintenance. The main manifestations are as follows:

[0037] 1. The existing distributed transaction processing system develops cor...