The invention discloses a high-
concurrency real-time message pushing
system and method based on an SSE protocol, and relates to the technical field of communication. Comprising the steps of 1, establishing a high-
concurrency real-time message pushing
system, 2, performing access,
heartbeat detection, connection
state management and load balancing of a
client through an access module, performing dynamic strategy allocation based on tenant ID hash through a load balancer of the access module, routing
client requests to different SSE servers, and sending the
client requests to the SSE servers. 3, caching and routing management of messages are carried out through a message management module, distributed message
middleware kafka is used as a cache
queue through the message management module, real-time messages sent by a
service system are received, and the messages are stored in a classified mode according to top and Tenant; the connection
metadata comprises a connection ID, a client subscription topic and a
timestamp, and step 5, monitoring the
connection number of each node in real time through a monitoring module, triggering connection migration and message reissuing when the node fails, removing the information of the failed node, and notifying a load balancer to
route the original connection to other nodes. And meanwhile, the message management module is notified to re-push the message which is not successfully pushed by the fault node to the new node, so that the message is prevented from being lost.