Abstract

Abstract As the entrance of the computer systems, the API gateway is an indispensable part of the microservice architecture. To realize the load balancing of API gateway, this paper studies the load balancing algorithm of the API gateway based on the microservice architecture. In doing this, we analyze the microservice architecture level from the data layer, the basic layer, and other levels, take the container cloud as the carrier of the microservice architecture, combine it with the client and API gateway, and design the API gateway based on the microservice architecture. We then judge whether the microservice identifier in the request source of the API gateway client is included in the API gateway routing table and determine the service cluster to which the microservice belongs according to the microservice identifier. After retrieving the qualified backend microservice container list according to the service cluster information, it adopts a load balancing algorithm based on dynamic weight, takes central processing unit (CPU) utilization and memory utilization as parameters to evaluate the resource load of microservers, uses an extreme gradient lifting model to predict CPU utilization and memory utilization, calculates the weight of microservers based on the prediction results, selects the microserver with the highest weight value to make API gateway service requests, and initiates API gateway service calls to specific backend microservice containers, thereby completing the load balancing of the API gateway. The experimental results show that the average load balancing degree of the algorithm is about 95 %, the average network resource utilization rate is as high as 89 %, and the algorithm execution time is short.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.