A Method of Distributing Clients to MQTT Brokers Using Server Redirection
Keisuke Yoshimura, Ryohei Banno · 2023
MQTT is a simple message protocol with the publish/subscribe model, which enables loosely coupled communication. In large-scale systems, load balancing is required because of the problem of concentrated load on brokers and subscrebers. However, existing load balancing methods have difficulty in distributing the load according to the load status of broker and the sending frequency of publisher, and there is a problem of a single point of failure. In this study, we propose a load balancing method using server redirection specified in MQTT v5.0 to improve the problems of existing methods. In order to verify the effectiveness of the proposed method, we conducted comparison experiments with DNS round-robin, an existing method, and measured the throughput and CPU utilization of each broker as evaluation indices.