An API Gateway Load Balancing Method for Small-scale Microservice Architecture

A balancing method and gateway load technology, applied in the field of cloud computing, can solve the problems of heavy algorithm, insufficient attention to dynamic routing table, poor performance, etc., to achieve strong balance, improve system availability, and reduce system overhead.

Active Publication Date: 2022-07-08
QINGDAO TELD NEW ENERGY TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The algorithm is too heavy and the performance is poor
The API gateway spends most of the overhead in pre-processing, and does not pay enough attention to the dynamics of the routing table

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
  • An API Gateway Load Balancing Method for Small-scale Microservice Architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The following describes the detailed technical solutions, features and advantages of the present invention by taking a mainstream Nginx reverse proxy server as an application example of an API gateway.

[0024] 1. Configure static routing table information on Nginx or deploy a management service module that supports dynamic routing table updates;

[0025] 2. Deploy the routing service module including the implementation process of the load balancing method of the present invention on Nginx;

[0026] 3. The client initiates a microservice request to the API gateway, which contains the microservice identification information as GetOrders;

[0027] 4. The API gateway checks the existence of the microservice identifier GetOrder from the microservice routing table, and retrieves the business cluster type it belongs to as Order;

[0028] 5. The API gateway retrieves the list of eligible back-end microservice containers from the container routing table according to the busine...

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 belongs to the technical field of cloud computing, and relates to a load balancing algorithm. An API gateway load balancing algorithm oriented to a small-scale microservice architecture, comprising the following steps: (1) judging whether the microservice identifier in the request source is included in the API gateway routing table; (2) determining the business cluster to which it belongs according to the microservice identifier ; (3) Retrieve the list of eligible back-end microservice containers according to the business cluster information; (4) Obtain the last digit of the millisecond level of the API gateway instant time, take the remainder of the number of back-end microservice containers, and use the remainder as the backend The index of the list of end-side microservice containers is selected as the eligible back-end micro-service containers; (5) The API gateway carries the micro-service request parameters to initiate a service call to a specific back-end micro-service container. The API gateway load balancing algorithm oriented to the small-scale micro-service architecture of the present invention greatly improves the high availability of the API gateway system, and at the same time, the simple load balancing algorithm is easy to implement and has strong balance.

Description

technical field [0001] The invention belongs to the technical field of cloud computing, and relates to a load balancing method. Background technique [0002] As a lightweight cloud computing solution, the microservice architecture splits large and complex software applications into multiple microservices based on business dimensions. It has the characteristics of decentralization and realizes agile development and rapid deployment. Microservice architecture has been more and more widely used in the field of computer cloud computing. In the microservice architecture, an API service gateway is usually built to uniformly process requests from various clients. This architecture hides various services that actually provide business operations in the backend, which can not only protect the business operation module, but also facilitate the Flexible configuration and expansion. Due to the large number of back-end microservice containers, the solution will involve how to choose a ...

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): H04L67/1001H04L67/51
CPCH04L67/1001H04L67/51
Inventor 于震黄伟鞠强魏亮周国庆
Owner QINGDAO TELD NEW ENERGY TECH CO LTD
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