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

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

Active Publication Date: 2021-01-29
北京奇元科技有限公司
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[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 distributed system confirm the data corresponding to the data read request, the data will be returned to the client, and it also needs to be recorded in the service node log, so that The overhead of reading data is too large, which affects the reading performance

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 reading and writing method and device based on distributed consensus protocol
  • Data reading and writing method and device based on distributed consensus protocol
  • Data reading and writing method and device based on distributed consensus protocol

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0024] figure 1 A schematic flowchart of a method for reading and writing data based on a distributed consensus protocol is shown according to an embodiment of the present invention. This method is applied to a distributed system containing multiple service nodes, such as figure 1 As shown, the method includes the following steps:

[0025] Step S100, when any service node receives the data write request sent by the first client, ...

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 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.

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

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/08
CPCH04L67/1095H04L67/60
Inventor 陈宗志
Owner 北京奇元科技有限公司
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