Coordination method and device for data consistency under cloud environment distributed transaction and medium

A technology of distributed transaction and coordination method, which is applied in the coordination field of data consistency under distributed transaction in cloud environment, can solve problems such as difficulty in providing response result data, and achieve high transaction processing efficiency, good user experience, and good flexibility Effect

Pending Publication Date: 2020-11-24
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In order to solve the problem that it is difficult for different databases under the existing microservice architecture to provide consistent response result data, the present invention innovatively provides a coordination method, device and medium for data consistency under distributed transactions in a cloud environment, and adopts a brand new Control logic so that each database requested by the current transaction provides a consistent response

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
  • Coordination method and device for data consistency under cloud environment distributed transaction and medium
  • Coordination method and device for data consistency under cloud environment distributed transaction and medium
  • Coordination method and device for data consistency under cloud environment distributed transaction and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] Such as figure 1 As shown, this embodiment can provide a coordination method for data consistency under distributed transactions in a cloud environment, which can be used to solve the problem that it is difficult to ensure that different databases provide consistent response result data under the microservice architecture in the prior art. The method may include but not limited to the following steps.

[0036] First, if figure 2 As shown, the local transaction request can be split into multiple operation requests according to the actual microservice architecture design. Among them, each operation request can be executed by a remote database, and the local transaction request can be related to specific application scenarios such as payment request, registration request, or order request. During specific implementation, figure 2 Operation request 1, operation request 2, and operation request n-1 are used to represent n-1 types of services, which can be realized throu...

Embodiment 2

[0049] Based on the same inventive concept as Embodiment 1, this embodiment can specifically provide an apparatus for data consistency under distributed transactions in a cloud environment that can be used to execute the method of Embodiment 1.

[0050] The data consistency device under the distributed transaction in the cloud environment includes, but is not limited to, a local transaction splitting module, a target data calling module, a return information receiving module, a data consistency control module, and a branch transaction recording module.

[0051] The local transaction splitting module is used to split the local transaction request into multiple operation requests. Among them, an operation request needs to be serviced by at least one database, and local transaction requests may include, but are not limited to, payment requests, registration requests, and order requests, for example.

[0052] The target data calling module is used to use each operation request to ...

Embodiment 3

[0060] Such as Figure 5 As shown, based on the same inventive concept as Embodiment 1 or Embodiment 2, this embodiment can provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the present invention can be realized. A method for coordinating data consistency under distributed transactions in a cloud environment in any embodiment of the invention or a device for coordinating data consistency in distributed transactions in a cloud environment in any embodiment of the invention.

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 discloses a coordination method and device for data consistency under distributed transactions in a cloud environment and a medium. The method comprises the following steps of splittingthe local transaction request into a plurality of operation requests, calling individual target databases, controlling the target database to enter a temporary state under the condition that the calling is successful or keeping the original state under the condition that the calling is failed; and receiving state return information from the target databases, respectively sending a service operation instruction to each target database when the state return information sent by each target database is used for representing the temporary state, and otherwise, carrying out rollback so as to enableeach target database to generate consistent response result data for the local transaction request. The device comprises a local transaction splitting module, a target data calling module, a return information receiving module and a data consistency control module. According to the method, it can be guaranteed that completely different databases provide consistent response results under the micro-service architecture, and particularly, final consistency of data is guaranteed under the abnormal condition.

Description

technical field [0001] The present invention relates to the technical field of cloud computing, and more specifically, the present invention relates to a method, device, and medium for coordinating data consistency under distributed transactions in a cloud environment. Background technique [0002] With the rise of cloud computing technology, functions such as online payment and account registration are becoming more and more convenient. At present, microservices in the distributed software environment of the cloud environment are becoming more and more detailed. In order to meet more service requirements, a single system (such as a group of servers in a certain location) is often split into multiple services. , each service is implemented through its own database. In a microservice scenario, a transaction request often needs to span multiple completely different databases, which makes the process of accessing data in the database complicated. It is difficult for existing t...

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/48G06F9/54
CPCG06F9/4881G06F9/547G06F9/542
Inventor 刘宏亚
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN
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