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

Method for solving multi-process access to Level DB based on RPC proxy

A multi-process and process technology, applied in the direction of multi-program device, inter-program communication, program control design, etc., can solve the problems of no solution, waste of storage space, etc., achieve maximum flexibility and convenience of use, and avoid waste of storage space Effect

Inactive Publication Date: 2022-05-06
深圳哈希街区科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

As LevelDB is widely used, an obvious defect limits its further development. LevelDB only allows single-process access. If you want to achieve concurrency, you can only achieve concurrency through multi-threading under a single process. In reality, there are Two obvious usage scenarios: one process reads and writes LevelDB, and other processes perform read-only operations on LevelDB; one process reads and writes LevelDB, and other local processes and even remote processes also read and write the same LevelDB
[0003] In these two scenarios, LevelDB does not provide an ideal solution; the first problem is a roundabout solution. For other read-only LevelDB processes, it is necessary to re-copy LevelDB data. The disadvantage is that the storage space is not good. Necessary waste, especially when the amount of data reaches TB or even PB level and there are multiple read-only processes
The second problem has no mature solution at all

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 solving multi-process access to Level DB based on RPC proxy
  • Method for solving multi-process access to Level DB based on RPC proxy

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0029] like figure 1 Shown, a kind of method based on RPC proxy solves multi-process access LevelDB, described method comprises the following steps:

[0030] S1. On the LevelDB server side, start the RPC proxy server module to complete the subsequent process read and write operations;

[0031] S2, on the LevelDB client, start the RPC proxy client module, the RPC proxy client module automatically connects to the RPC proxy server module through the RPC connection mo...

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 relates to the field of access of an RPC (Remote Procedure Call) to a LevelDB (Level DB), in particular to a method for solving multi-process access to the LevelDB based on an RPC proxy, which comprises the following steps of: S1, starting an RPC proxy server side module at a LevelDB server side, and finishing subsequent process read-write operation; and S2, at the LevelDB client, starting an RPC proxy client module, automatically connecting the RPC proxy client module to an RPC proxy server module through an RPC connection module, and completing subsequent process read-write operation after the RPC proxy client module is ready. According to the invention, based on the server side and the client side of the RPC, a plurality of local and remote processes can simultaneously initiate various read-write requests to the LevelDB, so that greater use flexibility and convenience can be brought to the LevelDB, and meanwhile, a large amount of unnecessary storage space waste is avoided.

Description

technical field [0001] The invention relates to the field of RPC access to LevelDB, in particular to a method for solving multi-process access to LevelDB based on RPC proxy. Background technique [0002] LevelDb is a C++ library capable of handling billion-level key-value data persistent storage. LevelDB is developed by Google and is open source. Well-known projects such as Chrome browser and the bottom layer of IPFS file system use LevelDB as metadata management engine. As LevelDB is widely used, an obvious defect limits its further development. LevelDB only allows single-process access. If you want to achieve concurrency, you can only achieve concurrency through multi-threading under a single process. In reality, there are Two obvious usage scenarios: one process reads and writes LevelDB, and other processes perform read-only operations on LevelDB; one process reads and writes LevelDB, and other local processes and even remote processes also read and write the same LevelD...

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/54G06F9/50
CPCG06F9/547G06F9/5005
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