Data reading and writing method and device based on distributed consensus protocol

A protocol implementation, data reading and writing technology, applied in the field of data processing, can solve the problems of high data reading overhead and affecting reading performance
CN108234641BActive Publication Date: 2021-01-29北京奇元科技有限公司

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
北京奇元科技有限公司
Publication Date
2021-01-29

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a data reading and writing method, device, computing equipment and computer storage medium realized based on a distributed consistency protocol. The method includes: when any service node receives the data write request sent by the first client, execute the data write operation and update the data version number recorded by the service node, and synchronize the data to be written to other services node, and return the data version number to the first client; when any service node receives a data read request carrying the first data version number sent by the second client, it records the first data version number with the service node The second data version number is compared, and the data read request is responded to according to the comparison result, thereby overcoming the problem of reading data that requires more than half of the service nodes to reach a consensus in the prior art when reading data based on the distributed consensus protocol. The problem of high data overhead.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the technical field of data processing, in particular to a data reading and writing method, device, computing device and computer storage medium realized based on a distributed consensus protocol. Background technique

[0002] A complete distributed system is formed by connecting many service nodes in different locations through the network, and a large amount of data is distributed among different service nodes in the entire network system. All clients connected to the distributed system can access the data in any service node.

[0003] The existing data reading method based on the distributed consensus protocol requires that each operation of reading data must follow the distributed consensus protocol (Raft protocol), that is, the service node that receives the data reading request sends the request through the network Send to other service nodes in the distributed system. After more than half of the service nodes in the dis...

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