Optimisation Strategies for Load Balancing Algorithms Based on Spring Cloud Alibaba

Jiawei Chen, Rong Fan, C. Y. Shao, Zhi Hu, Sisi Zhu, Xinyu Li, Jin Qian, Runkang Zhou, Jinbo Zhang · 2024

Nowadays, the microservice framework has become the mainstream framework of software development at home and abroad, and its advantages of high maintainability, wide expansion, and free technology stack have been unanimously recognized by users. However, the microservice framework itself still has some problems which cannot be ignored, among which the load balance of microservice will directly affect the execution efficiency and robustness of the whole software. Based on the Spring Cloud framework and combined with the components developed by Alibaba Company, this paper analyzes the existing allocation strategies and points out the shortcomings of static allocation strategies when dealing with heterogeneous clusters or emergencies. Then this paper proposes a dynamic load balancing algorithm based on the computer state with the aid of Redis cache. Experimental results show that this method can improve the distribution balance near the limit state while maintaining the same distribution lower limit as static load balancing.

Read the paper · More papers on PaperTik