| With the rapid development of smart cities,smart light poles are becoming more and more diversified as important urban perception layer devices.However,the adoption of microservice architecture should first solve the problems of how to split the microservice of smart light pole management system and how to develop and apply the important real-time data push service of smart light pole management system under microservice architecture.This thesis proposes a service splitting method for the smart light pole management system based on graph theory algorithm,which is guided by the microservice design principle of "high cohesion and low coupling" and considers the splitting of system class coupling graph structure and the splitting of database tables corresponding to entities.The basic idea is to start from the business logic of the intelligent light pole management system and the preliminary design report,first extract the class nodes and establish the static diagram structure of class coupling,then extract the function nodes and establish the business association diagram structure of class and function,generate the complete class coupling diagram structure according to these two diagram structures,complete the business operation splitting of the intelligent light pole management system,and finally extract the entity nodes and establish the data table diagram structure,complete the data table splitting,through the extraction of nodes and Through the extraction of nodes and clustering of graph structure,the closely related business functions and database tables are disassigned to different microservices to complete the system service splitting,forming 12 microservices mainly for real-time data pushing service,which provides a reference for the microservice splitting of smart light pole management system.To address the problem of real-time data storage,maintenance and push of the smart light pole management system,this thesis proposes the use of dual Redis database design to separate real-time data from cached data,clarifies three real-time data storage structures and the relationship between the data point table,dump configuration table and microservice system,and proposes a decision tree method and isolated point data detection method suitable for this system to complete the real-time data maintenance,and finally enabling the Redis real-time database key space notification function to listen for specific key value changes and push them to the client in real time via Websocket.Based on the above research,this thesis designs and implements a real-time push management system for smart light pole data based on microservice architecture.After system testing,the system meets the basic guidelines and requirements of microservice splitting and can efficiently and accurately realize the pushing of real-time data and the display and storage of historical data of smart light poles,meeting the real-time and concurrency requirements,which provides a perfect solution for the construction of smart light pole data visualization scenarios in smart cities. |