Distributed transaction processing method based on micro service architecture

A technology of distributed transactions and processing methods, applied in the direction of electrical digital data processing, inter-program communication, instruments, etc., can solve the problems of long communication time and high system performance consumption, and achieve short communication time, low performance consumption, and reduce network cost. The effect of the number of communications

Active Publication Date: 2017-06-30
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF3 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the process of use, it is found that the existing two-phase commit method has the following defects: the existing method requires the transaction coordinator to actively confirm the status of each transaction executor, so it involves multiple network communications between nodes, and the communication time Long time, high system performance consumption, etc.

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 based on micro service architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The core of the present invention is to provide a distributed transaction processing method based on the microservice architecture, which can not depend on specific development languages ​​and platforms, and ensures the data consistency of distributed transactions.

[0040] In order to make the above objects, features and advantages of the present invention more comprehensible, the specific implementation manners of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0041] In the following description, specific details are set forth in order to provide a thorough understanding of the present invention. However, the present invention can be implemented in many other ways than those described here, and those skilled in the art can make similar extensions without departing from the connotation of the present invention. Accordingly, the invention is not limited to the specific implementations disclosed below.

[0042] P...

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 discloses a distributed transaction processing method based on a micro service architecture. The method comprises the following steps: determining a service call node and a service called node in a micro service architecture; controlling the service call node to send a service message to the service called node through a message queue, and storing the sending status of the service message; controlling the service called node to resolve the service message and executing the corresponding service according to the resolution result; controlling the service called node to feed the service execution result back to the service call node; and controlling the service call node to change the current status of the service message stored therein according to the service execution result. The service call node changes the status of own service message according to the feedback information of the service called node, and a message queue mechanism is used for saving the message status without relying on the specific development language and platform, so that the data consistency of distributed transaction is ensured, the number of network communication times between the two nodes is reduced, the communication time is short, and the system performance consumption is low.

Description

technical field [0001] The invention relates to the field of microservice architecture, in particular to a distributed transaction processing method based on the microservice architecture. Background technique [0002] In recent years, with the rapid development of cloud computing and the Internet industry, the traditional technical architecture can no longer meet the flexible growth and elastic application of business volume. In order to solve this problem, the microservice architecture came into being. [0003] In the microservice architecture, the system is split into several relatively independent business services, and each service can be deployed on a different node. When calls occur between service nodes, how to achieve transaction consistency becomes an urgent problem to be solved. At present, a two-phase commit protocol (Two-phase Commit, 2pc) method is commonly used for processing distributed transactions. That is: the client submits a request to the transaction...

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/54
CPCG06F9/546
Inventor 付正全
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
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