Transaction processing method, device and system of distributed system, medium and equipment

A distributed system and transaction processing technology, applied in transaction processing, multi-program device, electrical digital data processing, etc., can solve the problems of repeated message sending, data inconsistency, multiple consumption, etc.

Pending Publication Date: 2020-06-09
NEUSOFT CORP
View PDF3 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since each service uses its own database maintained separately, the operations on the data are not in the same transaction when remote calling different services. For example, when service A calls service B, service A executes successfully, but service B fails. Since the transaction of service A has been committed, it cannot be rolled back, which will lead to the problem of data inconsistency
[0003] In the prior art, when solving the data inconsistency problem of service calls, it is usually based on TCC (TCC service is composed of Try / Confirm / Cancel business), distributed transactions such as flexible transactions such as message eventual consistency transactions, wherein TCC It is implemented based on the compensation mechanism, and in the message eventual consistency transaction, when the transaction processing of the distributed system is performed, the service call request message of the service caller application may be sent repeatedly, so that the service provider application has the same message The risk of being consumed multiple times

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 processing method, device and system of distributed system, medium and equipment
  • Transaction processing method, device and system of distributed system, medium and equipment
  • Transaction processing method, device and system of distributed system, medium and equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0066] Specific embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to illustrate and explain the present disclosure, and are not intended to limit the present disclosure.

[0067] In the distributed service architecture, it is necessary to ensure data consistency during transaction processing. When making asynchronous calls between microservice applications, some microservice calls only need to ensure the final consistency of the transaction. Among them, the final consistency of the transaction means that all data copies in the system can finally reach a consistent state after a certain period of time . For example, in a scenario that does not require real-time performance, for example, user A transfers X to user B, and after user A's account debits X, it is guaranteed that user B's account can finally be credited to X, thereby...

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 a transaction processing method, device and system of a distributed system, a medium and equipment, and the method comprises: intercepting a service call request initiated bya service caller application, wherein the service call request comprises a service requested to be called; if the preset consistency identifier exists in the service calling request, constructing an event object according to the method metadata of the service requested to be called, and storing the event object in a published event list, wherein the initial state of the event object is non-published; and selecting a target object from event objects which are not published in the published event list, and sending a request message corresponding to the target object to message middleware, the request message including method metadata of a target service corresponding to the target object, so that a service provider application providing the target service provides the target service based onthe request message. Therefore, the final consistency of transaction processing of the distributed system can be ensured.

Description

technical field [0001] The present disclosure relates to the field of computer technology, and in particular, to a transaction processing method, device, system, medium and equipment of a distributed system. Background technique [0002] With the popularity and popularization of distributed service architecture, multiple logical operations originally performed in a single application are now split into remote calls between multiple services, and the ensuing challenge is the issue of distributed transactions . Since each service uses its own database maintained separately, the operations on the data are not in the same transaction when remote calling different services. For example, when service A calls service B, service A executes successfully, but service B fails. Since the transaction of service A has been committed, it cannot be rolled back, which will lead to data inconsistency. [0003] In the prior art, when solving the data inconsistency problem of service calls, i...

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/46G06F9/54
CPCG06F9/466G06F9/547G06F9/546G06F2209/547G06F2209/549
Inventor 陆国际张霞葛东贾璐邢铁军
Owner NEUSOFT CORP
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