Service calling method and related equipment

A technology of service calling and caller, which is applied in the computer field, can solve problems such as compatibility, and achieve a wide range of applications

Pending Publication Date: 2021-10-12
TENCENT TECH (SHENZHEN) CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present application provides a service invocation method and related equipment, and then at least to a certain extent solves the compatibility problem of RPC invocation between different framework systems in the prior art due to the inconsistency of the protocol of the RPC framework

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
  • Service calling method and related equipment
  • Service calling method and related equipment
  • Service calling method and related equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be thorough and complete, and will fully convey the concepts of example embodiments to those skilled in the art.

[0039] Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of the embodiments of the application. However, those skilled in the art will appreciate that the technical solutions of the present application may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known methods,...

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 technical field of computers, and provides a service calling method, which is applied to an RPC framework and comprises the following steps: receiving a calling request initiated by a calling party after the calling party performs protocol registration on the RPC framework through registration information; serializing the request content through a packaging function registered by the calling party to obtain a first binary stream; sending the first binary stream to a called party corresponding to the service identifier; receiving a data packet returned by the called party, so that the called party calls the service indicated by the service identifier to perform operation according to the parameter indicated by the first binary stream to obtain an operation result, and the data packet is generated according to the operation result; analyzing the data packet through an analytic function registered by the calling party to obtain a response structural body; sending the response structural body to the calling party, so that the calling party obtains an operation result according to the response structural body. Decoupling between the protocol and the RPC framework is realized, so that the RPC framework can be suitable for service calling among different language platforms.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular, relates to a method for invoking a service and related equipment. Background technique [0002] It is widely used to implement remote service invocation based on the RPC (Remote Procedure Call, remote procedure call) protocol, and the remote service is implemented through the RPC framework. [0003] In the existing technology, various RPC frameworks are self-contained, and there is no unified RPC framework protocol standard, which brings difficulties to make RPC calls between different language platforms and different framework systems. Therefore, in order to implement different language platforms and different framework systems The protocol compatibility during the RPC call process requires secondary development of the logic of service calls in the RPC framework, and after the secondary development, the routing, coroutines and other framework features in the origin...

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 TENCENT TECH (SHENZHEN) 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