Method and device for data reading and writing on basis of key-value buffer

A technology for reading, writing, and caching data. The redundancy in hardware is used for data error detection, electrical digital data processing, and memory systems. Congestion and other problems, to achieve the effect of improving read and write efficiency, reducing congestion, and reducing load

Active Publication Date: 2013-07-17
JUHAOKAN TECH CO LTD
View PDF2 Cites 34 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the data read and write business services are provided to the client through the main cache, and the slave cache is only used as a backup cache. The load is heavy, which leads to the load imbalance between the main cache and the slave cache, which can easily cause the congestion of the main cache and reduce the data read and write efficiency of the main cache; further, when the main cache fails and fails, the slave cache that needs to be upgraded The device sends the service address update information containing the slave buffer to each client in the smart TV system, so that the client can update the settings to communicate with the upgraded slave buffer, so as not to interrupt the data reading and writing business service
Due to the large number of clients served by the smart TV system, the resource overhead required to send the service address update information is large; moreover, the client needs to perform update settings according to the service address update information received including the upgraded slave buffer, and it is necessary for the master From the structure of the buffer to continuously build and change the connection, the process is relatively complicated, and transparent connection cannot be achieved

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
  • Method and device for data reading and writing on basis of key-value buffer
  • Method and device for data reading and writing on basis of key-value buffer
  • Method and device for data reading and writing on basis of key-value buffer

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] The technical solutions of the various embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Apparently, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0053] The existing data reading and writing method based on the key-value pair cache adopts a master-slave cache. The client provides data reading and writing business services, which makes the main buffer load heavy and the data reading and writing efficiency low.

[0054] In practical applications, considering that the slave buffer performs data synchronization with the master buffer according to a preset synchronization cycle, the data cached in the slave buffer can be consisten...

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 method and device for data reading and writing on the basis of key-value buffer. The method includes: setting a primary buffer and secondary buffers buffering data in a key-value mode, setting that secondary buffers obtain synchronous updating data from the primary buffer according to a set synchronous cycle; receiving data requests sent by clients, outputting the data requests to the selected secondary buffer if the data requests are data reading requests, otherwise outputting the data requests to the primary buffer; receiving data request responses retuned from the primary buffer or data reading request responses returned from the primary buffers, and forwarding the data request responses and the data reading request responses to the corresponding clients; and monitoring state of the primary buffer and the secondary buffers, selecting the secondary buffers to send property change instructions after faults of the primary buffer are monitored, and switching the secondary buffers to the primary buffer according to the property change instructions. According to the method and device for the data reading and writing on the basis of the key-value buffer, the clients can use the buffers transparently, do not need to care about whether a single buffer breaks down, and can improve data reading and writing efficiency of the buffers.

Description

technical field [0001] The invention relates to data cache processing technology, in particular to a method and device for reading and writing data based on key-value pair (KV, Key-Value) cache. Background technique [0002] With the development of digital TV technology, the number of customers served by the smart TV system is increasing day by day. In order to improve the efficiency of data transmission (reading and writing) in the smart TV system and improve the concurrent performance of the smart TV system, key-value pair (KV, Key-Value) caching technology is generally used. KV caching technology is a widely used storage technology today. Through The hotspot data is stored in the memory of the smart TV system, and the hash (Hash) index method is used to improve the read and write access speed of the data, which can greatly improve the concurrent performance and transmission efficiency of the smart TV system. However, since the cache technology stores data in the memory, ...

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): G06F12/08H04N21/442G06F11/20G06F12/0875G06F12/0888
Inventor 张帅周翚
Owner JUHAOKAN TECH CO LTD
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