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

IDL-free remote procedure call (RPC) implementation method and system

A technology of remote procedure call and implementation method, which is applied in the field of RPC implementation of remote procedure call, which can solve problems such as development failures and high difficulty in traditional application development, and achieve the effects of improving development efficiency, improving flexibility, and optimizing the development process

Pending Publication Date: 2022-02-18
北京云上曲率科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] For this reason, the present invention provides a remote procedure call RPC implementation method and system without IDL, without using IDL to define the RPC protocol, and solves the problem that traditional application development is difficult and prone to malfunctions during development

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
  • IDL-free remote procedure call (RPC) implementation method and system
  • IDL-free remote procedure call (RPC) implementation method and system
  • IDL-free remote procedure call (RPC) implementation method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0103] see figure 1 and figure 2 , Embodiment 1 of the present invention provides a remote procedure call (RPC) implementation method without IDL, comprising the following steps:

[0104] (1) Request serialization:

[0105] (11) Create a remote procedure call request;

[0106] (12) Initialize a request buffer with a preset size;

[0107] (13) Serialize the actual data in the request data into binary data or convert it into a character string;

[0108] (14) write request data to request buffer;

[0109] (15) Send the request data of the request buffer;

[0110] (2) Request deserialization:

[0111] (21) Read the request protocol header of the request data;

[0112] (22) judging whether it is two-way communication according to the request protocol header, if it is the request sequence number in the two-way communication reading request data;

[0113] (23) Read the actual data in the request name and request data according to the request protocol header;

[0114] (24) D...

Embodiment 2

[0163] see Figure 6 , Embodiment 2 of the present invention also provides an IDL-free remote procedure call (RPC) implementation system, including a request serialization module 1 and a request deserialization module 2;

[0164] Request serialization module 1 includes:

[0165] The request creates a submodule 11, which is used to create a remote procedure call request;

[0166] The request buffer initialization sub-module 12 is used to initialize the request buffer of a preset size;

[0167] The request conversion sub-module 13 is used to serialize the actual data in the request data into binary data or convert it into a character string;

[0168] A request writes into the submodule 14, which is used to write request data to the request buffer;

[0169] The request sending submodule 15 is used to send the request data of the request buffer;

[0170] Request deserialization module 2 includes:

[0171] The request protocol header reading submodule 21 is used to read the re...

Embodiment 3

[0192] Embodiment 3 of the present invention provides a non-transitory computer-readable storage medium, and the computer-readable storage medium stores a program code for implementing a method of remote procedure call (RPC) without IDL, and the program code includes a program code for executing the method of the embodiment 1 or any of its possible implementations, the instruction of the remote procedure call RPC implementation method without IDL.

[0193] The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a solid state disk (SolidState Disk, SSD)).

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 an IDL-free remote procedure call (RPC) implementation method and system. The method comprises the following steps: creating a remote procedure call request, initializing and writing request data into a request buffer area, and sending the request data of the request buffer area; reading a request protocol header of the request data, if so, reading a request serial number in the request data, reading the request name and actual data in the request data according to the request protocol head, deserializing actual data in the request data, and executing the request, and if the communication is bidirectional communication, returning response content; creating a response, writing response data into the response buffer area, and sending the response data of the response buffer area; and reading a response protocol header of the response data, reading a response serial number in the response data, reading actual data in the response data according to the response protocol head, deserializing actual data in the response data, and executing response logic. The invention solves the problems that: traditional application development difficulty is high, and diseases are prone to occurring in development.

Description

technical field [0001] The invention relates to a remote procedure call RPC realization method and system without IDL, and belongs to the technical field of data processing. Background technique [0002] RPC is an abbreviation for Remote Procedure Call. RPC is widely used in system environment construction and application program design in distributed systems. The applications include the following aspects: inter-process communication of distributed operating systems; construction of software environments for distributed computing; remote database services; distributed applications Design and debugging of distributed programs. [0003] Traditional RPC frameworks, such as protobuf (an alternative developed by Google, designed to be faster and smaller than XML, is a mechanism for serializing and structured data) and thrift (a cross-platform development led by Facebook, supporting multiple Language, by defining the IDL file, the tool that automatically generates the communica...

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