Distributed transaction double-compensation method and device based on day-end account checking

A distributed transaction, double compensation technology, applied in the directions of non-redundancy fault handling, database distribution/replication, and response error generation, etc., can solve the problem of high development cost, low transaction real-time performance, and high intrusion of business code. problems, to achieve the effect of ensuring efficiency, avoiding business code intrusion, and low business code intrusion

Pending Publication Date: 2021-06-25
POSBANK
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The main purpose of this application is to provide a distributed transaction double compensation method, device, computer-readable storage medium and processor based on day-end reconciliation, so as to solve the problem of low transaction real-time performance in existing distributed transaction solutions. , high intrusiveness to business codes and high development costs

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
  • Distributed transaction double-compensation method and device based on day-end account checking
  • Distributed transaction double-compensation method and device based on day-end account checking
  • Distributed transaction double-compensation method and device based on day-end account checking

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0081] This embodiment involves a specific day-end reconciliation-based distributed transaction double compensation method, image 3 A flowchart of the method is shown. The method mainly includes three steps:

[0082] Step 1: Normal processing, according to the principle of optimism, the business logic is gradually processed normally, and there is no need to think too much about transaction exceptions to avoid intrusion into the code. In the actual environment, most of the business can be processed normally and successfully, so most of the business only needs to be processed normally without compensation actions, which improves the overall performance of the business system.

[0083] Step 2: Real-time compensation. If an exception is encountered during normal processing, it needs to be rolled back across databases as a whole. For example in image 3 , the entire business process involves a total of 4 transactions and 4 databases. If transaction 1 and transaction 2 have bee...

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 provides a distributed transaction double-compensation method and device based on day-end account checking. The method comprises the following steps: performing normal processing on each transaction according to a business processing flow without considering the abnormal condition of the transaction; after the transaction is normally processed, submitting a database corresponding to the transaction in real time; if an exception occurs when the predetermined transaction is processed, performing real-time compensation on a database corresponding to each transaction before the predetermined transaction by adopting a real-time compensation mechanism; if the global transaction consistency principle is still not met after real-time compensation, carrying out daily end account checking compensation. And the consistency of a plurality of databases is ensured through a double-compensation mechanism of real-time compensation and day-end account checking compensation. And the balance between the real-time performance and the consistency of the transaction is realized. The scheme has the advantages of high efficiency, transaction real-time performance and low service code invasiveness.

Description

technical field [0001] The present application relates to the field of distributed transactions, in particular, to a method, device, computer-readable storage medium and processor for distributed transaction double compensation based on day-end reconciliation. Background technique [0002] When the business system uses multiple databases at the same time, it is necessary to coordinate multiple databases to ensure the global transaction consistency of the database, that is, distributed database transactions. Traditionally, there are many ways to solve distributed transactions, such as 2PC two-stage commit, TCC confirmation compensation, MQ message, etc. However, traditional distributed transaction solutions have disadvantages such as low real-time transaction performance, high intrusiveness to business code, and high development costs. . [0003] Specifically, traditional distributed transaction solutions have the following problems: [0004] 2PC two-stage compensation mech...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/07G06F16/27
CPCG06F11/0709G06F11/0793G06F16/27
Inventor 师龙华王真
Owner POSBANK
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products