Transaction management method, apparatus and device under micro-service architecture and storage medium

A transaction management and micro-service technology, applied to the transaction management method, equipment and storage media, and device fields under the micro-service architecture, can solve problems such as performance degradation and resource waste

Active Publication Date: 2020-10-23
厦门市易联众易惠科技有限公司
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this case, if the XA transaction manager is used, since it can only manage XA transactions, XA transactions are also use

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
  • Transaction management method, apparatus and device under micro-service architecture and storage medium
  • Transaction management method, apparatus and device under micro-service architecture and storage medium
  • Transaction management method, apparatus and device under micro-service architecture and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0053] In order to make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be described clearly and completely in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is 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 a person of ordinary skill in the art without creative work shall fall within the protection scope of the present invention. Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by a 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 provides a transaction management method, apparatus and device under a micro-service architecture, and a storage medium. The method comprises the steps that: a transaction opening request initiated by a client is obtained; context information in the transaction opening request is intercepted, so that annotation information can be obtained, and when the annotation information indicates that a current transaction is a distributed XA transaction, a distributed XA transaction object is constructed; when it is judged that the distributed XA transaction object is remotely called, a transaction ID is added in the transaction opening request, the boundary of the remotely called distributed XA transaction is opened, and data writing is performed on participating nodes; and a request of submitting a transaction is initiated, and a preparation instruction including the transaction ID is sent, so that the remotely called participation nodes obtain corresponding branch IDs according to the transaction ID and mapping relationships when receiving the preparation instruction, search local branches according to the branch IDs, and execut the preparation instruction according to localresources. According to the transaction management method, apparatus and device under the micro-service architecture, and the storage medium of the invention, the capability of propagating one distributed XA transaction on a plurality of application instances is realized.

Description

Technical field [0001] The present invention relates to the field of computer technology, in particular to a transaction management method, device, equipment and storage medium under a microservice architecture Background technique [0002] Under the microservice architecture, a complete business entity is split into multiple application instances for support, and each application instance is responsible for managing its own data source. There are business scenarios that require only one application instance to participate in a business that uses only one data source, and there are also businesses that require multiple application instances to interact with multiple data sources. For services involving multiple data sources, distributed XA transactions are needed to coordinate data consistency and integrity. However, the independent distributed XA transaction manager currently provided by the industry can only manage multiple data sources in one application instance through dist...

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): G06F9/54
CPCG06F9/542G06F9/547
Inventor 林斌施建安庄一波赵友平孙志伟
Owner 厦门市易联众易惠科技有限公司
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