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

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

Example Embodiment

[0033] The implementation of the present invention will be described in detail below with reference to the accompanying drawings and embodiments, so as to fully understand how the present invention applies technical means to solve technical problems and achieve the realization process of technical effects and implement them accordingly. It should be noted that, as long as there is no conflict, the various embodiments of the present invention and the various features in each embodiment 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 flowcharts of the drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical sequence is shown in the flowcharts, in some cases, they can be different Perform the steps shown or described in the order here.

[0035] In a distributed application environment, according ...

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