In recent years,with the expansion of urban scale,the increase of population,the increase of vehicles and the richness of routes,the traditional bus real-time monitoring system has been unable to meet the actual needs of people’s growing public transport services.For example,the early bus real-time monitoring system in Zhengzhou was difficult to grasp and deal with the real-time information and special conditions of vehicles,resulting in waste of resources and increased travel time of passengers.Especially during peak hours,the slow speed of vehicles and the congestion in vehicles seriously affected the comfort and convenience of passengers.Firstly,the thesis analyzes the real-time monitoring system of public transportation vehicle information in Zhengzhou,and discusses the current problems of the system,such as high coupling between system modules,the lower concurrent ability of communication server,Real-time database is insufficient,and the system is not stable.Then on this basis,a system architecture with HAProxy as the proxy service,Netty as the high-performance communication framework,Kafka as the distributed message cache middleware and Redis as the memory database is studied and designed.Thus,a real-time vehicle information monitoring system with low coupling,real-time,high concurrency and high availability is realized.Among them,HAProxy uses the load balancing algorithm to forward the vehicle-borne terminal request to the background communication server,and at the same time detects the active state of the background server,ensuring the high concurrency,load balancing,high availability and other characteristics of the communication server.Kafka reduces the coupling between modules because of its low time delay,high throughput and data persistence.Redis makes use of its features of memory storage and high performance to improve real-time data query performance.Each module of this system is relatively independent with single function,which not only improves the basic functional requirements,but also improves the performance of the whole system.The experiments show that the real-time monitoring system of public transportation vehicle information designed and implemented in this paper can upload the basic information and positioning information of the vehicle to the monitoring platform in real time through the network,which can provide more reliable decision-making basis for the management system of bus dispatch,which further improve the punctuality rate of vehicle operation and passenger satisfaction,so as to achieve good economic and social benefits. |