The invention discloses a multi-protocol fusion edge message communication
system, and particularly relates to the field of message communication. The
system comprises a protocol access layer, a message
abstraction layer, a message scheduling layer and a storage
service layer. The protocol access layer comprises an
MQTT gateway module and an HTTP gateway module, the
MQTT gateway module processes all connections and messages related to the
MQTT protocol, and the HTTP gateway module provides message publishing and subscription services based on the HTTP protocol and supports three working
modes of RESTful API interface,
server push event SSE real-time subscription and
polling subscription. The message
abstraction layer defines a standardized
message structure and can completely represent message
semantics of the MQTT protocol and the HTTP protocol, the message scheduling layer unifies message agency, adopts a singleton mode design and unifies and manages
client connection, subscription relation and message distribution of all protocols, seamless fusion of the MQTT protocol and the HTTP protocol is achieved, and the message scheduling layer has the advantages of being simple in structure, convenient to use and high in efficiency. Uniform message formats and semantic representations are provided, and multiple message subscription
modes are supported.