Distributed transaction implementation method and device

A technology of distributed transaction and implementation method, applied in the field of distributed transaction implementation, can solve problems such as system performance degradation, and achieve the effect of reducing the time of locking resources

Inactive Publication Date: 2020-03-17
WUHAN HONGXU INFORMATION TECH
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a method and device for implementing distributed transactions, to solve or at least partially solve the defect in the prior art that the system performance drops significantly when global transactions are implemented

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 implementation method and device
  • Distributed transaction implementation method and device
  • Distributed transaction implementation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0036] In order to make the purpose, 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 in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0037] In order to overcome the above-mentioned problems in the prior art, an embodiment of the present invention provides a method and device for implementing distributed transactions. The inventive idea is to save the operation records of branch transactions through MySQL binlog logs. After registering branch transactions, the transaction registr...

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 embodiment of the invention provides a distributed transaction implementation method and device. The method comprises the following steps: executing a branch transaction according to a pre-configured proxy data source, and writing an operation record of the branch transaction into a MySQL binlog log; registering the branch transaction, and releasing the resource lock of the branch transaction.According to the distributed transaction implementation method and device, by writing the operation record of the branch transaction into the MySQL binlog log log, registering the branch transactionand releasing the resource lock of the branch transaction, the resource locking time can be reduced under the condition that rollback can be realized, and the system performance is not obviously reduced when a global transaction is realized. And the agent data source is configured in advance, so that the implementation process of the whole distributed transaction does not invade the original system service code, and the system performance is not obviously reduced when the global transaction is implemented.

Description

technical field [0001] The present invention relates to the field of computer technology, and more specifically, to a method and device for realizing distributed transactions. Background technique [0002] Traditional web systems are mostly monolithic applications. A system only needs one data source, and the ACID characteristics of database operations can be controlled by local database transactions. With the rapid development of the Internet, the business logic of the system is becoming more and more complex, and the number of users is increasing rapidly. , the monolithic application cannot meet the maintainability of the business, and faces performance bottlenecks, so business splitting, database splitting, different business operations and different databases appear, and different databases are even on different servers. The traditional Database local transactions cannot handle such cross-database transactions, so distributed transactions appear. [0003] The implementa...

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): G06F9/46G06F16/242
CPCG06F9/465G06F9/466G06F16/2433
Inventor 王涛伍孟轩陈浩
Owner WUHAN HONGXU INFORMATION TECH
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