The invention relates to the technical field of communication, and discloses a construction method and
system capable of arbitrarily expanding
MQTT (Message Quantitative Trait Transport) multiple clusters based on a controllable dynamic
route, and the
system comprises an equipment management
service module which is used for distributing an affiliated
MQTT cluster to equipment and writing the information of the affiliated
MQTT cluster of the equipment into an equipment
route storage module; the MQTT cluster ip manager is used for managing and maintaining an MQTT cluster
list and a node ip
list of each MQTT cluster and writing the MQTT cluster
list and the node ip list into the equipment routing storage module; and the MQTT
reverse proxy gateway is used as a unified entrance for equipment access, analyzes the connection request message when the equipment is connected, reads the MQTT cluster which should be connected with the equipment in the equipment routing storage module, proxies the connection request of the equipment, and forwards the connection request to a correct MQTT
cluster node. According to the method, high-performance access and resource optimization are realized, the equipment is ensured to reach a specified node through one-time connection, the
time sequence is maintained, reliable connection is provided, the distribution problem is solved, and the migration cost is reduced.