Method and apparatus for implementing remote calling

A remote call and call request technology, applied in the computer field, can solve the problems of unavailable PHP services, inability to cope with high concurrent call scenarios, and low performance, and achieve the effect of improving RPC call performance

Active Publication Date: 2018-07-31
WUHAN DOUYU NETWORK TECH CO LTD
View PDF10 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the performance of blocking calls is very low and cannot cope with high concurrency call scenarios
Moreover, whenever there is a change in the communication protocol or a modification in the PHP configuration, PHP needs to be restarted, resulting in the unavailability of the entire PHP service.

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 apparatus for implementing remote calling
  • Method and apparatus for implementing remote calling
  • Method and apparatus for implementing remote calling

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0034] Those skilled in the art can understand that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which this invention belongs. It should also be understood that terms, such as those defined in commonly used dictionaries, should be understood to have meanings consistent with the meanings in the co...

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 embodiment of the invention provides a method and apparatus for implementing remote calling. The method comprises the following steps: adding RPC calling request information of a PHP process to apublic POSIX message queue, wherein the RPC calling request information carries a process ID of the PHP process; sending the RPC calling request information in the public POSIX message queue to a message relay server through a preset proxy service, so that the message relay server returns an RPC response message after executing the corresponding method calling, wherein the RPC response message carries the process ID of the PHP process; adding the RPC response message to a dedicated POSIX message queue corresponding to the PHP process according to the process ID; and extracting the RPC responsemessage from the dedicated POSIX message queue. By adoption of the method and apparatus, a non-blocking RPC calling mode is achieved, and compared with the traditional blocking RPC calling mode, theRPC calling performance is effectively improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for realizing remote calling. Background technique [0002] PHP (Hypertext Preprocessor, Hypertext Preprocessor) is a powerful server-side scripting language for creating dynamic interactive sites. In the prior art, due to the characteristics of the scripting language, PHP is calling RPC (Remote Procedure Call, remote procedure call ) usually uses a blocking calling method. However, the performance of blocking calls is very low and cannot cope with high-concurrency call scenarios. Moreover, whenever there is a communication protocol change or a modification of the PHP configuration, PHP needs to be restarted, resulting in the unavailability of the entire PHP service. Contents of the invention [0003] In view of the above problems, the present invention is proposed to provide a method and device for realizing remote invocation that overcome the above pro...

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): H04L29/06H04L29/08
CPCH04L67/1004H04L67/1001H04L67/56H04L67/133
Inventor 张李攀陈少杰张文明
Owner WUHAN DOUYU NETWORK 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