Method of limiting network flow through API gateway

A gateway and traffic technology, applied in the field of distributed systems, can solve the problems of a single current limiting method, cannot fully meet the complex needs of the business platform, and deny users access to services, etc., to achieve the effect of meeting complex needs.

Active Publication Date: 2019-01-15
SICHUAN PANOVASIC TECH
View PDF5 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The API gateway can limit the access to the back-end micro-service interface, but the current solution in the industry is to use a counter. Every time the terminal accesses the micro-service interface, the count of the counter will be increased by one. When the count of the counter reaches Deny the user's access to the service when the preset threshold is reached
This current limiting method is relatively simple and cannot fully meet the complex needs of the business platform.

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 of limiting network flow through API gateway

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0026] Such as figure 1 As shown, a method for restricting traffic through an API gateway can be applied to a microservice architecture and is suitable for data centers such as distributed computing platforms and cloud computing platforms. The method mainly includes the following steps:

[0027] In step 101, the API gateway constructs a list data structure for registered microservices.

[0028] The microservices are microservices registered with the API gateway and open to end users.

[0029] The list data structure is based on the name or service ID of each microservice as the value of the element item of the list data structure.

[0030] In step 102, the API gateway configures a traffic limiting policy for each microservice interface.

[0031] The current limiting strategy may be a combination of multiple strategies or a single strategy.

[0032] Among them, a single policy can be the maximum number of visits allowed per second N1 or the maximum number of visits allowed b...

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 for limiting the network flow through an API gateway. The method comprises the following steps: A. the API gateway constructs a list data structure for a registered micro service; B. that API gateway configure a flow restriction policy for each micro service interface; C. constructing a current limiting filter module according to the current limiting strategy of the step B; D. The API gateway starts the current limiting filter module and decides whether to respond to the request of the terminal according to the output result of the current limiting module. In the method of the invention, by configuring the current limiting filter module and the current limiting strategy set, the API gateway can flexibly control the flow of the micro-service access accordingto the actual access situation of the user terminal, thereby completely meeting the complex requirements of the actual service.

Description

technical field [0001] The invention relates to the technical field of distributed systems of computer software, in particular to a method for restricting traffic through an API gateway. Background technique [0002] With the continuous deepening of the mobile Internet, more and more companies and enterprises have gradually begun to face the Internet, and migrate customer-oriented services and businesses online. When developing these online businesses, as the number of customers continues to increase, the structure of the business platform is also constantly changing and evolving. Gradually transforming from the early monolithic application architecture to the microservice architecture, clustering and distribution have also become standard technologies. [0003] In the process of building the basic platform of the microservice architecture, the API (Application Programming Interface) gateway is one of the essential core components. An API gateway provides a unified interfa...

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/801H04L12/813H04L29/06H04L47/20
CPCH04L47/10H04L47/20H04L63/0227
Inventor 李强王凤琴
Owner SICHUAN PANOVASIC TECH
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