Load balancing and node time delay reducing method for MQTT (Message Quantitative Trait Transport) service

The invention provides a load balancing and node time delay reducing method for MQTT service. The method comprises the following steps: step S1, a client applies to a Ticket server for obtaining an MQTT node request through an Https protocol; s2, the Ticket server obtains a request of a client, retu...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: XU JIE, ZHOU HUAQIAN, XIE QI, LIU SHIQING, XU GONGPAN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a load balancing and node time delay reducing method for MQTT service. The method comprises the following steps: step S1, a client applies to a Ticket server for obtaining an MQTT node request through an Https protocol; s2, the Ticket server obtains a request of a client, returns MQTT node information with a high weight value and sends the MQTT node information to the client, the client receives the MQTT node information, and the MQTT nodes are connected according to the sequence of weights from high to low; s3, judging whether the MQTT node is successfully connected or not, if yes, storing client session information by the MQTT server, and starting service interaction by the client, and if not, returning to the step S1; step S4, updating an MQTT node information list and an MQTT node state; according to the invention, the network stability problem caused by public network detour of the client can be reduced, and the communication delay is reduced. 本发明提供了一种MQTT服务的负载均衡和节点降低延时方法,所述方法包括以下步