Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for simultaneously reading and writing RocksDB by multiple processes based on RPC proxy

A simultaneous reading and writing, multi-process technology, applied in the direction of multi-program device, inter-program communication, database management system, etc., can solve the problems that RocksDB does not provide a solution, process read-only mode, restrictions, etc.

Pending Publication Date: 2022-07-29
哈希天目(上海)软件技术有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

As RocksDB is widely used, an obvious defect limits its further development. Although RocksDB allows multi-process access, only one process is writable, and other processes are read-only.
In reality, there is an obvious usage scenario: one process reads and writes RocksDB, and other local processes and even remote processes also read and write the same RocksDB at the same time. RocksDB does not provide an ideal solution for this scenario.

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 for simultaneously reading and writing RocksDB by multiple processes based on RPC proxy
  • Method for simultaneously reading and writing RocksDB by multiple processes based on RPC proxy

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0023] like Figure 1-Figure 2 As shown, a method for simultaneously reading and writing RocksDB by multiple processes based on RPC proxy includes the following steps:

[0024] S1, the RocksDB client application tries to open RocksDB,

[0025] S2, if RocksDB is not opened, first check whether the RPC server module is started, if not, start it, save the corresponding read / write request interface of RocksDB as a callback function, and...

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 for simultaneously reading and writing RocksDB by multiple processes based on RPC agency, at a RocksDB server side, an RPC agency server side module needs to be started firstly, the subsequent reading and writing operations of the processes are not different from the original use mode of the RocksDB, and at a RocksDB client side, whether the RocksDB server side is the same server or other node servers, the RocksDB server side module needs to be started firstly, and the RocksDB client side module needs to be started firstly. According to the method for simultaneously reading and writing the RocksDB by the multiple processes based on the RPC proxy, the RPC proxy client module needs to be started firstly, the RPC proxy client service module is automatically connected to the RPC proxy server module through the RPC, and the operation processes such as reading and writing of the processes after the processes are prepared are not different from the original use mode of the RocksDB. The problem that multiple processes cannot access the RocksDB at the same time can be solved based on the RPC proxy.

Description

Technical field [0001] The present invention relates to the technical fields of RPC and RocksDB products, specifically a method for solving the problem of simultaneous reading and writing of RocksDB by multiple processes based on RPC agents. Background technique [0002] RocksDB is a C++ library that can handle persistent storage of billion-level Key-Value data. RocksDB is developed and open sourced by Facebook, and is a secondary development based on Google's open source LevelDB. Well-known projects such as TiKV, MyRocks, CrockRoach, etc. As RocksDB is widely used, an obvious flaw limits its continued development. Although RocksDB allows access by multiple processes, only one process is writable, and other processes are read-only. In reality, there is an obvious usage scenario: one process reads and writes RocksDB, and other local processes and even remote processes also read and write the same RocksDB at the same time. RocksDB does not provide an ideal solution for this s...

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/54G06F16/25
CPCG06F9/547G06F16/252
Inventor 吴波于淼
Owner 哈希天目(上海)软件技术有限公司