| Population health has always been a hot topic of concern to all human beings.By the end of 2017,there were 241 million people aged over 60 in China,accounting for 17.3% of the total population.As China’s ageing trend has intensified,the situation on medical resources becomes more serious.In order to solve this contradiction,in recent years,China has vigorously developed Internet medical technology,which has prompted the emergence of mobile medical and artificial intelligence medical technologies.All these new technologies need to collect or store a large number of medical vital signs data.Therefore,it is also very important to study how to process and store these vital signs data.In view of this situation,this paper has designed a set of highly concurrent medical vital signs data acquisition system,mainly to help large-scale hospitals for automated patient data collection and real-time monitoring.The system Collect vital signs data of the user through some devices such as thermometers,sphygmomanometers,oximeters,and pulsometers,and send data to a smart watch terminal using Bluetooth.The watch then sends the data to the server,and receives the server’s push message as a monitoring terminal in real time.The main research part of this paper is the server’s data processing process for high concurrent vital signs.The main contents are as follows:(1)In the server I/O design pattern selection,Netty as an excellent framework in Reactor Mode was selected as the server network program framework,it is used to develop server-side programs.(2)In the design of the network communication layer,a concise message structure is designed.The serialization method utilizes the characteristics of the medical vital sign data itself.At the same time,it draws on the idea of Google Protobuf Variable-length encoding,which makes the data occupy as little bandwidth as possible in the network transmission.(3)In terms of security verification,an efficient and secure login authentication method has been designed,a token and time stamp encryption method is used as the authentication credentials.In combination with the use of the Redis database,the time for retrieving data is shortened,and the speed of login verification is improved.(4)In timing task processing,HashedWheelTimer is used as the system timer to reduce the CPU resource consumption of the server.(5)In the processing of time-consuming tasks,a dedicated serialized thread pool is designed according to the requirements of the business.This ensures that tasks submitted by the same client are always executed serially at the thread pool level,which improves the efficiency of business processing.(6)The entire system was tested for performance.The Innovations of this paper are as follows:(1)The innovative serialization method: Utilizing the characteristics of medical data itself and the idea of Google Protobuf variable-length coding to compress transmission data,improving transmission efficiency.(2)The customized task serializes the thread pool,ensuring the serial execution of the same client task and making the business process more efficient. |