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

API gateway configuration method and API gateway system

A configuration method and gateway technology, applied in the field of API gateway configuration and API gateway system, can solve problems such as inconvenience to change interfaces and inability to request multiple interfaces at a time, so as to reduce the number of network handshakes, reduce repetitive work, and improve performance Effect

Inactive Publication Date: 2020-08-25
北京静帆科技有限公司
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. Every time an interface is added, a corresponding route needs to be added, so repeated work is required, and it is not convenient to change the interface
[0005] 2. Each route can only request one interface at a time, and cannot request multiple interfaces at a time

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
  • API gateway configuration method and API gateway system
  • API gateway configuration method and API gateway system
  • API gateway configuration method and API gateway system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041] see figure 1 , figure 1 It is a schematic flow diagram of a method for configuring an API gateway according to an embodiment of the present invention; the method includes the following steps:

[0042] S100: the server defines multiple API gateway interfaces and corresponding processing functions;

[0043] Specifically, the server defines each API gateway interface, including defining the first parameter and the second parameter, wherein the first parameter is the field cmd, and the field cmd is used to identify the processing function corresponding to the sub-request information; the second The parameter is the field index, which is used to identify the mapping parameter of the result returned by the server received by the client; in addition, the server also defines a third parameter for each API gateway interface, and the third parameter is the field body, which is used It is used to store the processing functions of each API gateway interface. For example, the inte...

Embodiment 2

[0078] image 3 For a schematic structural diagram of an API gateway system according to an embodiment of the present invention, see image 3 , including server and client, to do the following:

[0079] The server defines multiple API gateway interfaces and their corresponding processing functions;

[0080] The client sends a request message to the server;

[0081] Wherein, the request information includes a plurality of sub-request information, each sub-request information includes a first parameter and a second parameter, the first parameter is used to identify the processing function corresponding to the sub-request information, and the second parameter is used to identify The mapping parameter of the result returned by the server;

[0082] In response to the request information, the server determines the processing function corresponding to the sub-request information according to the first parameter in each sub-request information, assigns the sub-request information 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 invention discloses an API gateway configuration method and a gateway system. The API gateway configuration method comprises the following steps that S100, a server defines a plurality of API gateway interfaces and corresponding processing functions; S200, the client sends request information to the server; sS300, the server, in response to the request information, generates feedback information and sends the feedback information to the client; and S400, the client analyzes the feedback information to obtain a mapping relationship among the processing result, the processing function and the API gateway interface. According to the invention, the plurality of API gateway interfaces can correspond to the same route, and routes do not need to be added for the newly added API gateway interfaces so that repeated work is reduced, and the error probability is avoided; the data of the plurality of API gateway interfaces can be requested in one request of the client, and the data of the plurality of API gateway interfaces can be randomly combined, so that the network handshake frequency is reduced, and meanwhile, the purpose of improving the performance of the API gateway is also achieved.

Description

technical field [0001] The invention relates to the technical field of computer software development, in particular to an API gateway configuration method and an API gateway system. Background technique [0002] At present, various network services generally have a client and a server, and there is an API (Application Programming Interface) gateway in the middle to uniformly receive requests from the client or external partners and other callers, and perform certain operations according to the different logic of each interface. The verification and logic processing, and then forwarded to the back-end service. The current common API gateway configuration is that one interface corresponds to one route. [0003] The current common API gateway configuration is that one interface corresponds to one route. The technical problems in this way are: [0004] 1. Every time an interface is added, a corresponding route needs to be added, so repeated work is required, and it is not conve...

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): H04L12/66H04L12/24
CPCH04L12/66H04L41/0803
Inventor 黄德斌
Owner 北京静帆科技有限公司
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