Research and Application of Smart Lamppost System Based on Microservice Architecture
Due to the constant polling,the push and acquisition of real-time data in the traditional smart lamppost system takes up system overhead,which causes the large network bandwidth pressure,and high traffic requests may cause system collapse and other problems.To solve the above problems,a smart lamppost data real-time push system based on microservice architecture is designed and implemented.Based on the actual business needs,the system technical architecture and functional architecture are designed,and four technical modules and functional modules are clarified.By extracting and sorting out the relationship and attributes of modules,functions,entities and resource nodes,the weights between different nodes are clarified,and the graph network is built.The graph clustering algorithm is used to split the sys-tem into nine micro services based on real-time data push services.The system uses the dual-Redis database design to separate the real-time data and cache data according to the real-time data push demand,clarifies the three real-time data storage structures and the relationship be-tween the data point table,the transfer configuration table,and the system,which enables the Redis real-time database key space notification function,monitors the specific key value changes,and pushes them to the client in real time through Websocket.The system test shows that the system can efficiently and accurately push the real-time data of the smart lamppost and display and store of the historical data to meet the real-time and concurrent requirements,which provides a perfect solution for the construction of the smart lamppost data visualization scenari-os in the smart city.