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

Remote procedure call method, computer equipment and storage medium

A remote procedure call and computer program technology, applied in the computer field, can solve problems such as wasting bandwidth

Inactive Publication Date: 2020-01-07
WUHAN DOUYU NETWORK TECH CO LTD
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present application distinguishes the types of calls by providing a remote procedure call method, computer equipment, and storage media, and sets the notification type for calls that do not need to use the call results, so as to notify the called end that there is no need to return this call As a result, it solves the problem of wasting bandwidth caused by the called end sending all remote procedure call results to the calling end in the prior art

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
  • Remote procedure call method, computer equipment and storage medium
  • Remote procedure call method, computer equipment and storage medium
  • Remote procedure call method, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0069] see figure 1 , a remote procedure call method provided in this embodiment is applied to the calling end, including the following steps:

[0070] S101. When performing a remote procedure call in an asynchronous manner, determine a type of the call, where the type of the call includes a notification type and a request type.

[0071] In the method of remote procedure call in an asynchronous manner, before the call result is returned, a virtual response result is returned to the calling end, so that the thread corresponding to the calling end is in the wake-up state, and after receiving the call result returned by the called end, Then return the real response result to the calling end. Compared with the method of calling the remote procedure synchronously, it can solve the problem that the interface of the program appears to be suspended before the response result is received when the remote procedure is called, which improves the user experience. technical effect. Howeve...

Embodiment 2

[0090] see figure 2 , another remote procedure call method provided in this embodiment is applied to the called end, and the method includes:

[0091] S201. Receive a remote procedure call message sent by the calling end;

[0092] S202. Determine the RPC function according to the procedure field in the remote procedure call message;

[0093] S203. Execute calling according to the RPC function;

[0094] S204. Determine the type of the call according to the remote procedure call message. If the rpcType field of the remote procedure call message is RPC_MESSAGE_NOTIFY, then determine that the call is a notification type, so that it is not necessary to return the the result of the call.

[0095] It can be seen that in this embodiment, the remote procedure call message sent by the caller is received; the RPC function is determined according to the procedure field in the remote procedure call message; the call is executed according to the RPC function; The type of the call, if t...

Embodiment 3

[0097] see image 3 , a remote procedure call device provided in this embodiment is applied to the calling end, including:

[0098] The first determining unit 301 is configured to determine the type of the call when the remote procedure call is performed in an asynchronous manner, and the type of the call includes a notification type and a request type;

[0099] The first setting unit 302 is configured to set the type of the remote procedure call function corresponding to the call as a notification type if the call is a notification type, wherein, by setting the notify of the remote procedure call function corresponding to the call The value of the parameter is true, so that the type of the remote procedure call function is set as the notification type;

[0100] A first creating unit 303, configured to create a remote procedure call message according to the remote procedure call function;

[0101] The second setting unit 304 is configured to set the type of the remote proced...

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 provides a remote procedure call method, which comprises the following steps of: when remote procedure call is carried out in an asynchronous mode, determining the type of the call; if the call is the notification type, setting the type of a remote procedure call function corresponding to the call as the notification type; creating a remote procedure call message according to the remote procedure call function; setting the type of the remote procedure call message as a notification type; and sending the remote procedure call message to a called end, so that the called end determines that the type of the remote procedure call message is a notification type, thereby determining that the call result does not need to be returned to the call end. According to the method and the device, the calling types can be distinguished, and the calling which does not need to use the calling result is set as the notification type, so that the called end is notified not to return the calling result, and the utilization rate of bandwidth resources is improved.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a remote procedure call method, computer equipment and storage media. Background technique [0002] The so-called Remote Procedure Call (RPC, Remote Procedure Call) means that one process calls a method provided by another process, but the angle of the calling end is still consistent with the function calling this process. In the remote procedure call, all parameters to be provided to the called end process are serialized into a network message, and then sent to the called end process through network transmission. After the called end processes the corresponding service, it serializes the generated result into a network message and sends it to the calling end process. [0003] It can be seen that in the remote procedure call, the called end will return the result to the calling end every time it is called. However, in some applications, the calling end does not nee...

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): G06F9/54
CPCG06F9/547
Inventor 杨亮陈少杰张文明
Owner WUHAN DOUYU NETWORK TECH CO LTD
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