Distributed transaction solution under micro-service architecture

A distributed transaction and solution technology, applied in the field of wireless communication, can solve complex system transformation, increase system construction cost, difficult to replace and other problems

Inactive Publication Date: 2017-07-28
BEIJING JIAOTONG UNIV
View PDF5 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] 1: The requirements for the message middleware itself are extremely high. All messages of the transaction are stored in the message middleware. Once the message middleware fails, it will not only affect the business, but may also cause unrecoverable data loss;
[0007] 2: The microservice system is highly dependent on the message middleware, resul...

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 solution under micro-service architecture
  • Distributed transaction solution under micro-service architecture
  • Distributed transaction solution under micro-service architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.

[0047]Those skilled in the art will understand that unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the word "comprising" used in the description of the present invention refers to the presence of said features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, Integers, steps, operations, elements, components, and / or groups thereof. It will be understood...

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 solution under a micro-service architecture. The method comprises the following steps: a user client initiates a registration request to a front-end web server, and the front-end web server sends the registration request of the user to a user micro-service server; the user micro-service server processes a registration transaction event of the user and sends the registration transaction event of the user to a message-oriented middleware, and the message-oriented middleware forwards the registration transaction event of the user to an account micro-service server; and the account micro-service server processes the registration transaction event of the user. According to the distributed transaction solution provided by the invention, the reliable transmission and final consistency of messages can be ensured through the own transaction message re-transmission mechanism and transaction re-processing mechanism of each micro-service so as to ensure that the implementation of the scheme does not depend on the reliable transmission mechanism of the third-party message-oriented middleware, and thus the coupling with a certain type of message-oriented middleware can be weakened; and the abnormal loss of the transaction message events can be timely found and the transaction message events can be timely self-healed through the global audit and self-healing mechanisms.

Description

technical field [0001] The invention relates to the technical field of wireless communication, in particular to a distributed transaction solution method under a microservice architecture. Background technique [0002] The traditional monolithic application is not enough to meet the business volume and data volume of modern Internet applications. At this time, the application and database need to be split, and an application needs to access two or more databases at the same time. At this time, we use distributed transactions to ensure consistency, which is what we often call 2PC (Two Phase Commitment Protocol, the abbreviation of Two Phase Commitment Protocol). However, traditional distributed transactions such as 2PC are not the best choice for consistency in microservice architecture: [0003] First of all, for the microservice architecture, not only the database is split, but also the application is split, and data access becomes more complicated. This is because the dat...

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
IPC IPC(8): H04L29/08
CPCH04L67/51H04L67/56
Inventor 周达天黄祖真胡伟
Owner BEIJING JIAOTONG UNIV
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