Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Distributed transaction processing method and device, message producer and consumer system

A distributed transaction and processing method technology, applied in transaction processing, non-redundancy-based fault processing, multi-programming devices, etc., can solve the problem that the system does not promise to be read immediately, the business side has a heavy processing burden, and the transaction cannot be solved, etc. question

Active Publication Date: 2020-07-03
BANK OF CHINA
View PDF6 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 2. Weak consistency: After the data is updated successfully, the system does not promise to read the latest written value immediately, nor does it promise how long it will take to read
However, the distributed processing scheme based on event table-based asynchronous guarantee and best-effort notification has the following problems: the business party (message producer) has a heavy processing burden, and the transaction cannot be finally consistent due to the loss of messages.
[0013] For the above problems, no effective solutions have been proposed so far

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 processing method and device, message producer and consumer system
  • Distributed transaction processing method and device, message producer and consumer system
  • Distributed transaction processing method and device, message producer and consumer system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0076] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.

[0077] Before introducing the embodiments of the present invention, first introduce the technical names involved in the embodiments of the present invention.

[0078] 1. Transaction: A transaction is to provide a mechanism to incorporate a series of operations into an inseparable execution unit. All operations that make up a transaction can only be submitted when all operations can be executed normally, as long as any operation fails. It will caus...

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 processing method and device, a message producer and a consumer system, and the method comprises the steps that the message producer system processes atransaction in the message producer system when receiving a distributed transaction processing triggering instruction; writing data involved in processing the distributed transaction into a local event table while processing the distributed transaction; after the transaction processing succeeds, sending a first processing result message to the message consumer system; the message consumer systemprocesses affairs in the message consumer system according to the first processing result message and sends processing result feedback information to the message producer system; the message producersystem updates a local event table according to the feedback information; wherein when the whole distributed transaction processing process is abnormal, the step of retry processing is executed; and when the step of retry processing fails to be executed, executing the step of batch compensation processing. According to the technical scheme, the final strictly consistent distributed transaction processing is realized.

Description

Technical field [0001] The present invention relates to the technical field of data processing, in particular to a method and device for processing distributed transactions, and a message producer and consumer system. Background technique [0002] With the popularity of microservice architecture, more and more calls are made between systems. Microservices advocate the splitting of complex monolithic applications into several services with simple functions and loose coupling, which can reduce development difficulty, enhance scalability, and facilitate agile development. At present, it is praised by more and more developers. Many Internet industry giants and open source communities have begun to discuss and practice microservices, but at the same time, after the system is microserviced, a seemingly simple function may need to be called multiple internally. The service and operation of multiple databases are implemented, and the distributed transaction problem of service invocation...

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/46G06F9/54G06F11/14G06F11/07
CPCG06F9/466G06F9/542G06F11/1497G06F11/0793G06F2201/82Y02D10/00
Inventor 钱峰
Owner BANK OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products