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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com