Abstract: In this study, we design a novel real-time mass data exchange system for IOT. Compared to the existing methods, our method can achieve real-time data transmission while guaranteeing the high stability and accuracy. It is designed with the following four unique improvements. First, by employing asynchronous socket to allow connection from mass TCP clients, system resource is significantly saved and efficiency is ensured. Secondly, the concept of generic protocol is proposed to solve the problem of parsing protocols of various formats, enabling our solution to be self-adaptable and well-extensible. Furthermore, we also propose a novel three-level data storage model to handle concurrent access and modification to the cache space by multiple threads. Lastly, to improve performance, we propose to reduce the number of database queries by utilizing the mapping relationship between the terminal IDs and the caches of the query and forwarding threads.