Sequential calling method and device based on two-stage transaction messages in distributed environment

A distributed environment and distributed transaction technology, applied in the field of sequential call methods and devices based on two-stage transaction messages, can solve the problems of arriving message queues, messages cannot be guaranteed to be sent in order, and the correctness of calculation results cannot be guaranteed. To achieve the effect of improving the efficiency of program execution

Pending Publication Date: 2020-04-21
CHINA CONSTRUCTION BANK
View PDF9 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In a distributed environment, due to the clock difference of each application node and the instability of network transmission, the sent messages cannot be guaranteed to arrive at the message queue in the order in which they were sent. For downstream applications that need to calculate based on messages, the calculation results correctness is not guaranteed

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
  • Sequential calling method and device based on two-stage transaction messages in distributed environment
  • Sequential calling method and device based on two-stage transaction messages in distributed environment
  • Sequential calling method and device based on two-stage transaction messages in distributed environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The implementation of the present invention will be described in detail below in conjunction with the accompanying drawings and examples, so as to fully understand and implement the process of how to apply technical means to solve technical problems and achieve technical effects in the present invention. It should be noted that, as long as there is no conflict, each embodiment and each feature of each embodiment in the present invention can be combined with each other, and the formed technical solutions are all within the protection scope of the present invention.

[0034] In addition, the steps shown in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and, although a logical order is shown in the flow diagrams, in some cases, the sequence may be different. The steps shown or described are performed in the order herein.

[0035] In a distributed application environment, according to the CAP princi...

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 sequential calling method based on two-stage transaction messages in a distributed environment. The method comprises the steps of obtaining a message type of a to-be-processedtransaction; when the message type of the transaction is a sequence sensitive type, obtaining a sequence key of a processing time sequence of transaction messages processed by each node; receiving apreparation message output by each node, caching the preparation message to the local, and feeding back a preparation message response to the corresponding node; receiving a confirmation message output by the node, and obtaining a transaction message in the preparation message cached in the local according to the confirmation message; comparing the transaction message with the transaction messagecorresponding to the sequence key; and outputting a processing result in the confirmation message to a downstream node of a distributed transaction processing chain when the position of the transaction message in the sequence key meets a preset rule.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a sequential call method and device based on two-stage transaction messages in a distributed environment. Background technique [0002] With the development of society and economy, IT software systems inevitably need to be modularized in order to meet the growing business needs while ensuring maintainability. Each module has supporting data sources for its reading and writing. Regardless of whether a distributed architecture is adopted, there are often multiple data sources for different functional modules. The completion of any business function almost requires multiple modules to work together. For business scenarios with high consistency requirements such as financial payment, in order to ensure the consistency of business execution results, multiple data sources need to be read and written at the same time, and the read and write results must succeed or fail at the same time,...

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/546
Inventor 贺诗浩何鑫尧张强刘小齐雷鸣王赵羿刘广宇杜方举
Owner CHINA CONSTRUCTION BANK
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