Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data consistency method, distributed coordinator and central coordinator

A central coordinator and distributed server technology, applied in the direction of electrical digital data processing, instruments, communication between programs, etc., can solve the problems of modifying business logic and communication times, single point of failure, information blockage, etc., to achieve data consistency sexual effect

Pending Publication Date: 2020-05-12
BANK OF CHINA
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the defects of information blockage, single point of failure, need to modify business logic and many times of communication in the distributed server data consistency method in the prior art, the first aspect of the present invention provides a distributed server data consistency method The method is applicable to the distributed coordinator, and the transaction start annotation and the transaction start annotation are established in the transaction program in advance, wherein the transaction program includes multiple transactions, and the method includes:

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
  • Data consistency method, distributed coordinator and central coordinator
  • Data consistency method, distributed coordinator and central coordinator
  • Data consistency method, distributed coordinator and central coordinator

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0058] In order to make the technical features and effects of the present invention more obvious, the technical solutions of the present invention will be further described below in conjunction with the accompanying drawings. The present invention can also be described or implemented in other different specific examples. The equivalent transformations done within all belong to the protection category of the present invention.

[0059] The terms "first", "second", ... etc. used in this specification do not specifically refer to the order or sequence, nor are they intended to limit the present invention, but are only used to distinguish elements or components described with the same technical terms. operate.

[0060] In the description of this specification, descriptions referring to the terms "an embodiment", "a specific embodiment", "some embodiments", "for example", "specific examples", or "some examples" mean that the descriptions in conjunction with the implementation A sp...

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 data consistency method, a distributed coordinator and a central coordinator, and the data consistency method comprises the steps: recognizing the start of a transaction through a transaction start annotation in a transaction program, creating a global ID when the transaction starts, transmitting the global ID to the central coordinator, and building a global ID queue through the central coordinator; identifying the start of the transaction through the transaction start annotation, when the transaction is started, creating transaction information and sending the information to the central coordinator, wherein the transaction information comprises a transaction ID, a global ID and a transaction calling state, the central coordinator records the transaction ID into acorresponding global ID queue when the transaction calling state is finished, and if the transaction calling state is failed, a fallback instruction is generated according to all completed transaction ID queues in the corresponding global ID queue; and receiving a rollback instruction, and initiating rollback operation. According to the invention, the consistency of distributed server data can berealized.

Description

technical field [0001] The invention relates to the field of distributed servers, in particular to a distributed server data consistency method, a distributed coordinator and a central coordinator. Background technique [0002] The unification of distributed server data in the prior art is mainly realized in the following two ways: 1) two-phase commit (2PC), the principle used is the XA protocol principle (it is a standard protocol formulated by the X / Open organization for distributed transaction processing) ). 2) Compensation transaction (TCC), TCC adopts the compensation mechanism. For each operation, a corresponding confirmation and compensation (revocation) operation must be registered. It is divided into three stages: the Try stage is mainly to test the business system and resource reservation; the Confirm stage is mainly to confirm and submit the business system. When the Try stage is successfully executed and the Confirm stage is started, the Confirm stage will not m...

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/46G06F9/54H04L29/08
CPCG06F9/466G06F9/547H04L67/10Y02D10/00
Inventor 戴翔高芳吴嘉杰谢立治
Owner BANK OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products