Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for invoking a service

A service call and service interface technology, applied in the field of service call methods and devices, can solve the problems of cumbersome configuration file content, unfavorable modification of configuration file configuration files, etc., and achieve the effect of simplifying the content and calling process

Active Publication Date: 2021-03-26
BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD +1
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in general, each service will have many interfaces. The configuration file adopts the existing method of describing the service interface, which will make the content of the configuration file very cumbersome, which is not conducive to subsequent modification of the configuration file or writing of a new configuration file.

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 device for invoking a service
  • Method and device for invoking a service
  • Method and device for invoking a service

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] 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.

[0055] The simplified configuration file facilitates subsequent modification of the configuration file or writing of a new configuration file. In order to achieve this purpose, an embodiment of the present invention provides a method and device for invoking a service.

[0056] Firstly, a method for invoking a service provided by an embodiment of the present invention will be described below.

[0057] refer to figure 1 , figure 1 The first schematic flowchart of t...

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 present invention discloses a method and device for invoking a service. The method includes: obtaining the target public parameters of the target interface from the configuration file, and obtaining the target specific parameters of the target interface from the configuration file; A rule with a priority higher than that of public parameters, merging the public parameters of the target and the specific parameters of the target to obtain the target interface parameters of the target interface; according to the target interface parameters, corresponding from the target service through the RPC framework The server invokes the target service, and a simplified configuration file is used in this process, which is beneficial for subsequently modifying the configuration file or writing a new configuration file.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for invoking a service. Background technique [0002] With the development of Internet technology, most of the existing services need to rely on external services. In order to reduce the cost of calling external services, improve the efficiency of developing programs that call external services, and improve the stability of calling external services, remote procedure calls The (Remote Procedure Call Protocol, RPC) framework came into being, and the remote service call can be realized through the RPC framework. RPC is a widely used distributed application processing method. An application uses the RPC framework to remotely call a service located in a different address space, which is the same as calling a local service in effect. [0003] Existing RPC frameworks include: Google's protobuf, Facebook's thrift, Tencent's spp, and Alibaba's dubbo, etc. In the p...

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 Patents(China)
IPC IPC(8): H04L12/24H04L29/06H04L29/08
CPCH04L41/0803H04L67/30H04L67/133
Inventor 黄鑫张驰
Owner BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD