The invention provides a multi-communication-source-oriented high-
concurrency real-time communication
data processing method, and aims to solve the problems of difficulty in compatibility of multi-source heterogeneous protocols, insufficient high
concurrency performance, contradiction between real-time performance and orderliness and poor
system expansibility in
industrial communication. According to the specific technical scheme, a layered architecture of a protocol layer, a routing layer and a logic layer is adopted; protocol
adaptation and
connection management and control are achieved through an independent protocol adapter, Session unified management and data normalization; decoupling I / O and business
processing based on the event-driven asynchronous architecture, the
message queue and the working
thread pool; by means of accurate routing of a message
router, messages of the same kind are bound to the same thread through a consistent hash or modulo grouping strategy, and orderliness is guaranteed. According to the method, high compatibility, easy expansion, excellent
concurrency performance, intelligent ordered
processing and high-availability elastic expansion are realized, and the efficient
data processing requirement of an industrial scene is met.