API gateway routing entity configuration method and system based on Kong

A configuration method and a configuration system technology, applied in transmission systems, digital transmission systems, data exchange networks, etc., can solve the problems of low efficiency of request configuration, failure to meet the work requirements of intelligent reasons, and unsatisfaction, so as to achieve easy expansion and work The effect of high efficiency and simple operation

Inactive Publication Date: 2020-07-07
山东汇贸电子口岸有限公司
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Specifically, when implementing the present invention, the inventors found that the basic configuration of the routing entity using the API gateway has the problem of intelligent routing of requests in the case of multiple domain name resolutions, and the work efficiency of request configuration is low and cannot meet the requirements. Smart reasons for job demands

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 routing entity configuration method and system based on Kong
  • API gateway routing entity configuration method and system based on Kong
  • API gateway routing entity configuration method and system based on Kong

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] A Kong-based API gateway routing entity configuration method, the specific steps are as follows:

[0041] S1 uses the YAML configuration file to configure the API gateway plug-in developed based on Kong;

[0042] S2 restricts the fields in the request header in the entity;

[0043] S3 matches the restriction field exactly to the client request;

[0044] S4 intelligently routes exactly matching requests;

[0045] The client sends an HTTP request to the gateway, the gateway receives the request, and then uses the method of the present invention to configure the API gateway routing entity, restricts the fields in the request through S2, and completely matches the restricted fields with the client request through S3 to achieve multiple domain names Requests for intelligent routing in the case of resolution;

[0046] Further, the S1 uses the YAML configuration file to perform declarative configuration on the API gateway plug-in developed based on Kong;

[0047] Further, ...

Embodiment 2

[0057] The present invention also provides a kind of Kong-based API gateway routing entity configuration system corresponding to the method of the present invention, including a configuration module, a restriction module, a matching module and a routing module;

[0058] Configuration module: use the YAML configuration file to configure the API gateway plug-in developed based on Kong;

[0059] Restriction module: restrict the fields in the request header in the entity;

[0060] Matching module: completely match the restricted field with the client request;

[0061] Routing module: intelligently route exact matching requests.

[0062] The client sends an HTTP request to the gateway, the gateway receives the request, and then uses the system of the present invention to configure the API gateway routing entity, restricts the fields in the request through the restriction module, and completely matches the restriction field with the client request through the matching module to ach...

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 routing entity configuration method and an API gateway routing entity configuration system based on Kong, which belong to the field of communication configuration. The API gateway routing entity configuration method comprises the following specific steps of: S1, configuring an API gateway plug-in developed on the basis of Kong by utilizing a YAML configuration file; S2, limiting fields in a request header in an entity; S3, completely matching the limited field with a client request; S4, and carrying out intelligent routing on the completely matched request. According to the API gateway routing entity configuration method and the API gateway routing entity configuration system, a client transmits an HTTP request to a gateway, the gateway receives therequest, then API gateway routing entity configuration is carried out by using the API gateway routing entity configuration method disclosed by the invention, the fields in the request are limited, andthe limited fields are completely matched with the client request, so that the request for intelligent routing under the condition of multi-domain name resolution is achieved, the API gateway routingconfigured by adopting the API gateway routing entity configuration method is simple in operation and easy to expand, the working requirement of the intelligent routing can be flexibly met, and the working efficiency of request configuration is higher.

Description

technical field [0001] The invention discloses a Kong-based API gateway routing entity configuration method and system, and relates to the technical field of communication configuration. Background technique [0002] API economy is a brand-new economic phenomenon produced in the era of information network. API Gateway (API Gateway) is an architectural model that emerged together with the microservice architecture. Enterprises can host APIs through API Gateways to realize the opening and use of APIs. The API gateway provides the basic functions of intelligent routing and load balancing. On top of this, it further provides functions such as authentication, current limiting and monitoring, and realizes a unified gateway entrance and exit for API management, thereby solving the problem of over-dispersion of the microservice architecture and realizing Hosting of the API. [0003] Specifically, when implementing the present invention, the inventors found that the basic configura...

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/24H04L12/721
CPCH04L41/0889H04L45/14
Inventor 刘清华马浩严赵阳
Owner 山东汇贸电子口岸有限公司
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