Research on Optimization Strategies of Load Balancing Algorithms Based on Spring Cloud Alibaba

Zhiwen Chen, Wenbo Wu · 2024

The microservices framework has become a mainstream framework for software development both domestically and internationally,It has high maintainability, wide scalability, and freedom of technology stack have been universally recognized by users. However, the quality of load balancing in microservices directly affects the execution efficiency and robustness of the entire software. Based on the Spring Cloud framework and in combination with components developed by Alibaba, this paper analyzes existing allocation strategies, pointing out the shortcomings of static allocation strategies when dealing with heterogeneous clusters or sudden situations. Leveraging Redis caching,A dynamic load balancing algorithm based on computer state implementation is proposed. Experimental results demonstrate that this method can improve the allocation balance in near-limit allocation states while maintaining the same allocation lower limit as static load balancing.

Read the paper · More papers on PaperTik