How 3 Million Reconnection Tests Prove smart-mqtt v1.2.0’s Stability

smart-mqtt v1.2.0 introduces async batch processing, smart resource management, and a refactored subscription model, and a three‑million‑reconnection stress test shows the broker remains stable under extreme network churn, with no packet loss, service interruption, or resource spikes.

Three Knives
Three Knives
Three Knives
How 3 Million Reconnection Tests Prove smart-mqtt v1.2.0’s Stability

Version Overview

smart-mqtt v1.2.0 is released as the most lightweight MQTT broker in the Java ecosystem, targeting stable and efficient messaging.

Stability Verification

Near 3 million client disconnect‑reconnect cycles were executed over several days. In simulated high‑concurrency, frequent connect/disconnect scenarios, all metrics remained steady with no packet loss, service interruption, or abnormal resource growth.

Core Optimizations

Asynchronous batch consumption

New async batch mechanism ingests metric data into storage.

Reduces database write pressure and safeguards broker stability.

Smart resource management

Detects idle topics and releases associated memory.

H2 database defaults to file‑based persistence to avoid long‑run memory bloat.

Subscription structure refactor

Improves internal topic subscription design.

Boosts processing efficiency in large‑scale subscription scenarios.

Feature Enhancements & Bug Fixes

Fixed occasional MqttClient version loss.

Optimized retain‑message handling.

Improved console log output at startup.

Enhanced new‑version detection.

Upgraded reconnection logic in the stress‑test tool.

Dependency Slimming

Removed commons-lang and slf4j dependencies.

Resulting distribution is smaller and less prone to dependency conflicts.

Component Upgrades

feat → 1.1.0

smart-socket → 1.5.69

Acquisition

GitHub mirror: https://github.com/smartboot/smart-mqtt

Gitee main repository: https://gitee.com/smartboot/smart-mqtt

Quick Start (Docker)

docker run --name smart-mqtt \
  -p 18083:18083 \
  -p 1883:1883 \
  -d smartboot/smart-mqtt:latest

Web console: http://localhost:18083

MQTT port: 1883

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

JavaDockerPerformance OptimizationResource ManagementBrokerMQTTsmart-mqtt
Three Knives
Written by

Three Knives

Every line of code you contribute to open source could help make the future better.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.