Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Distributed transaction management method based on state flow

A management method and state flow technology, applied in transaction processing, distributed object-oriented systems, data processing applications, etc.

Inactive Publication Date: 2019-01-08
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The technical problem to be solved by the present invention is to propose a distributed transaction management method based on state flow, solve the problem of data transaction management between multiple services across databases, and ensure the atomicity of business transactions

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 management method based on state flow
  • Distributed transaction management method based on state flow

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0030] In this embodiment, a transaction example commonly used on the Internet is used for illustration, and points and balances are used for payment, and points and balances are stored in different libraries. Because it is in different libraries, microservices are used to implement it in modules, and the deduction and point deduction are placed in different services.

[0031] Here we define several variables that represent the transaction process, the payer fromUser, the payee toUser, the transaction amount amount, the single-step execution status state, the unique transaction number tradeId, and the msgType message type. For the overall process, see figure 1 . Including four major steps: account balance and status check, points balance and status check, account balance deduction (payee account increase), points balance deduction. The account and points are in two different services, so it is necessary to check whether the two data meet the requirements before deducting.

...

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 relates to the technical field of data transaction management between computer technology and micro-service multi-modules, and discloses a distributed transaction management method basedon state flow, which solves the problem of data transaction management between multi-services across databases and ensures the atomicity of business transactions. The method comprises the following steps: a, the final state of each data operation in the business process is stored in a preset position; the details of the corresponding data operation is saved while saving the state; b if that datain the intermediate step is problematic, reverse restore operation is carried out accord to the status of each step and the data exchange situation at the beginning of recording; c, the status flow table of the completed transaction is scanned through the timer, the order with abnormal status but not yet processed is queried , and then e compensation operation is performed.

Description

technical field [0001] The invention relates to the technical field of data transaction management between computer technology and micro-service multi-modules, in particular to a distributed transaction management method based on state flow. Background technique [0002] With the development of the Internet, the rise of e-commerce and the vigorous promotion of public clouds, building service platforms through open source software and free databases has penetrated into the core of the industry and has become a development trend. Compared with payment, open source is bound to have a decrease in performance or throughput, but today's declining server costs and gradually low bandwidth allow developers to find another shortcut to make up for the lack of open source or free. It is to solve the performance problem of open source software through the accumulation of servers and the horizontal expansion of multi-service clusters. You can rent server clusters for platform constructio...

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/46G06Q40/04
CPCG06F9/465G06F9/466G06Q40/04
Inventor 彭世伟杨震泉张帅
Owner SICHUAN CHANGHONG ELECTRIC 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
Eureka Blog
Learn More
PatSnap group products