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

Method and system for quickly calling service interface

A technology of service interface and service port, applied in the field of rapid invocation of service interface, can solve the problems of small burden, high cost, high operation and maintenance cost, and achieve the effect of avoiding network delay and low cost

Pending Publication Date: 2022-06-21
福州汇思博信息技术有限公司
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this method is costly, and it is not a small burden for small and micro enterprises.
[0007] (3) It is necessary to monitor and maintain the global network, and the operation and maintenance costs are high

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 system for quickly calling service interface
  • Method and system for quickly calling service interface
  • Method and system for quickly calling service interface

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0068] Please refer to figure 1 , image 3 and Figure 4 , the first embodiment of the present invention is:

[0069] A method for quickly invoking a service interface, including steps:

[0070] S1, the mapping server generates an interface mapping table according to the interfaces of all current services, and the interface mapping table includes an interface name, an interface address and a service port;

[0071] In this embodiment, an interface mapping table of "interface name-interface address-service port" is generated for APIs of different business services, and the interface mapping table describes the IP address and port number where the real service corresponding to the API is located. As shown in Table 1 below:

[0072] Table 1

[0073]

[0074]

[0075] As shown in Table 1 above, a host with one IP address can have multiple API interfaces to provide services to the outside world; under a physical host with the same IP address, multiple services can also pr...

Embodiment 2

[0091] Please refer to figure 2 , the second embodiment of the present invention is:

[0092] A system 1 for quick invocation of a service interface, comprising a user application end 5 and a mapping server end 2, the mapping server end 2 includes a first processor 3, a first memory 4, and is stored in the first memory 4 and can be A computer program running on the first processor 3, the user application terminal 5 includes a second processor 6, a second memory 7, and a computer program stored in the second memory 7 and available on the second processor A computer program running on 6, the first processor 3 implements the steps performed by the mapping server 2 in the first embodiment above when the first processor 3 executes the first computer program, and the second processor 6 executes the first When two computer programs are used, the steps performed by the user application terminal 5 described in the first embodiment above are implemented.

[0093] The main principle o...

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 a method and a system for quickly calling a service interface. A mapping server generates an interface mapping table according to interfaces of all current services, wherein the interface mapping table comprises interface names, interface addresses and service ports; when a user application side is started, the interface mapping table is obtained from the mapping server side and stored or updated to the local; when a user application side sends a request, a target address in the request is modified according to the interface name in the request, the interface address corresponding to the interface name in the interface mapping table and the service port; according to the invention, the interface mapping table is generated at the mapping server side, and the user application side obtains the latest interface mapping table from the mapping server side when being started, and directly sends the request to the physical hosts of different micro-services corresponding to the service according to the interface mapping table, so that the problem that obvious network delay is easy to generate in a traditional centralized forwarding mode is avoided; and the starting, operation and maintenance cost is low.

Description

technical field [0001] The invention relates to the field of computer technology, and in particular, to a method and system for rapidly invoking a service interface. Background technique [0002] Currently, Restful-based network API calls are widely used in various network applications. The calling method is characterized by sending an API calling request to a specified network address. For Internet applications with microservice architecture, services are usually deployed on different physical hosts, and different physical hosts usually have different IP addresses; even the same physical host may have multiple ports corresponding to multiple Different microservices. [0003] In the traditional method, a unified virtual IP address or a unified network domain name will be constructed on the mapping server. The API call request sent by the client will first be sent to the network address, and then forwarded through the unified network address. Go to the service of the real ...

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): H04L41/0803H04L41/082H04L41/0823H04L41/0894H04L43/0852H04L61/4511
CPCH04L41/0803H04L41/082H04L41/0823H04L41/0893H04L43/0852
Inventor 陈利权
Owner 福州汇思博信息技术有限公司