| With the recent release of the State Council’s document on strengthening the supervision of emergency support vehicles,it is imperative to design a targeted system that caters to the unique nature of these vehicles.Emergency support vehicles are equIPped with on-board monitoring terminals,which generate a large number of requests simultaneously,requiring a high level of concurrency in the system.Additionally,the emergency support vehicle system must perform real-time analysis and uploading of on-board videos to ensure timely warning of dangerous behavior and facilitate post-event tracing.Therefore,meeting the high concurrency requirements while ensuring transmission latency is a critical challenge in the system design for this scenario.This thesis focuses on addressing the high concurrency requirements of the system by adopting a micro-services architecture for service construction.The services are divided based on the princIPles of high cohesion and low coupling,and the Spring Cloud framework is used for microservice development.To meet the low transmission latency requirements,a hybrid load balancing algorithm is analyzed and designed.The system is then tested through functional and stress testing,which includes dividing the system into services according to business requirements,using Consul as the service registration center for service governance,and implementing design schemes for various parts of the system.Additionally,log monitoring is implemented,and fault tolerance mechanisms ensure the normal operation of services.To address the shortcomings of existing static and dynamic load balancing,the article proposes combining the module division of microservices with the cluster division of load balancing.This involves using static load balancing cluster services for CPU usage modules and dynamic load balancing cluster services for memory usage modules.Two load balancing parameters and related weights are designed,and the server parameters are dynamically captured and uploaded through Consul+Nginx+nginx-upsync-module,avoiding the performance loss caused by the configuration file of the load balancer being restarted.Finally,the performance differences of different load balancing algorithms are compared through stress testing,proving the rationality of this algorithm.The system is then subjected to functional and stress testing,which verifies the system’s functionality through interaction with the UI interface and its concurrency and abnormality rate through stress testing tools.The test results demonstrate the advantages of this algorithm in terms of latency and abnormality rate. |