Skip to main content
QUICK REVIEW

[Paper Review] Engineering and Experimentally Benchmarking Open Source MQTT Broker Implementations

Jasenka Dizdarević, Marc Michalke|arXiv (Cornell University)|May 23, 2023
IoT and Edge/Fog ComputingComputer Science5 citations
TL;DR

This paper presents a reproducible, open-source testbed for experimentally benchmarking five open-source MQTT broker implementations—Mosquitto, EMQX, RabbitMQ, VerneMQ, and HiveMQ—across AMD64 virtual machines and ARM64 Raspberry Pi clusters under controlled network conditions. Key findings show that hardware platform (VM vs. Raspberry Pi) and message payload size (especially 1MB) have a far greater impact on performance than broker choice, with VMs achieving significantly lower response times and higher consistency, particularly under high-latency or packet-loss conditions.

ABSTRACT

The Message Queuing Telemetry Transport (MQTT) protocol is one of the most widely used IoT protocol solutions. In this work, we are especially interested in open-source MQTT Broker implementations (such as Mosquitto, EMQX, RabbitMQ, VerneMQ, and HiveMQ). To this end, we engineer a network testbed to experimentally benchmark the performance of these implementations in an edge computing context with constrained devices. In more detail, we engineer an automated deployment and orchestration of the containerized MQTT broker implementations, with support for deployment across either moderately powerful AMD64 devices, or more resource constrained ARM64 devices. The proposed MQTT implementations are evaluated in terms of overhead response time and different payload sizes. Results showed that the hardware platform used as well as the message size, and the network parameters (latency, packet loss and jitter) have a significant impact on the performance differences between the brokers. All results, software tools and code are fully reproducible and free and open source.

Motivation & Objective

  • To address the lack of systematic, reproducible experimental benchmarking of open-source MQTT brokers in real edge networking environments with constrained devices.
  • To evaluate how network parameters—latency, jitter, and packet loss—affect the performance of widely used open-source MQTT brokers.
  • To compare the performance of five major open-source MQTT brokers (Mosquitto, EMQX, RabbitMQ, VerneMQ, HiveMQ) across different hardware platforms (AMD64 VMs and ARM64 Raspberry Pis).
  • To develop a fully automated, containerized, and open-source testbed for repeatable performance evaluation of MQTT brokers in edge computing scenarios.
  • To provide actionable insights for system designers on selecting the most suitable MQTT broker based on message size, network conditions, and hardware constraints.

Proposed method

  • Engineered a reproducible, containerized network testbed using Docker and Kubernetes for orchestrating MQTT broker deployments on both AMD64 virtual machines and ARM64 Raspberry Pi clusters.
  • Implemented automated test execution pipelines to benchmark broker performance across varying network conditions, including configurable delay, jitter, and packet loss using TC (traffic control) tools.
  • Measured performance using offset response time and message exchange latency as key metrics, across three payload sizes: 1KB, 10KB, and 1MB.
  • Deployed and evaluated five open-source MQTT brokers—Mosquitto, EMQX, RabbitMQ, VerneMQ, and HiveMQ—under identical test conditions to ensure fair comparison.
  • Used statistical analysis (median and interquartile range) to assess performance consistency and variability across multiple runs and network scenarios.
  • Designed the testbed to be extensible, supporting integration with additional brokers and communication protocol frameworks for future benchmarking.

Experimental results

Research questions

  • RQ1How do different open-source MQTT broker implementations perform under varying network conditions, including latency, jitter, and packet loss?
  • RQ2What is the impact of hardware platform (AMD64 VM vs. ARM64 Raspberry Pi) on MQTT broker performance in edge computing environments?
  • RQ3How does message payload size (1KB, 10KB, 1MB) influence the response time and latency of MQTT brokers across different network and hardware configurations?
  • RQ4To what extent do differences in broker implementation affect performance compared to the influence of network and hardware factors?
  • RQ5Can a fully automated, reproducible, and open-source testbed be effectively used to benchmark MQTT broker performance in real-world edge scenarios?

Key findings

  • The hardware platform had a more significant impact on performance than the choice of MQTT broker, with VMs achieving substantially lower response times than Raspberry Pi setups across all scenarios.
  • For 1KB and 10KB message payloads, network degradation caused only a minor increase in latency across all brokers, with differences between implementations considered negligible.
  • At 1MB payload size, all brokers experienced a substantial performance degradation, with median latency increasing significantly and interquartile ranges (IQR) widening, indicating higher variability.
  • In the worst-case network scenario on VMs, VerneMQ (345.64 ms) and HiveMQ (374.80 ms) showed notably higher median response times than Mosquitto (437.10 ms), EMQX (418.81 ms), and RabbitMQ (429.83 ms), indicating that larger payloads amplify performance differences.
  • The testbed's own performance offset was minimal and comparable across brokers when deployed on the same hardware and network conditions, validating the reliability of the benchmarking setup.
  • The results demonstrate that hardware constraints and message size are critical factors in broker selection, especially for latency-sensitive IoT applications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.