smart-mqtt v1.4.0 Packs Under 800KB While Handling 10 Million Messages per Second
smart-mqtt v1.4.0 reduces its distribution size by 73% to under 800 KB, replaces YAML with environment‑variable configuration, achieves up to 1 M msg/s QoS0 throughput in a Podman test environment, and adds extensive memory, plugin, and cloud‑native improvements for faster deployment and higher stability.
Core Highlights
Package slimming – deep Maven dependency analysis reduced the open‑source distribution from 3 MB to under 800 KB, a 73 % size drop that speeds download, deployment and startup.
Configuration overhaul – the legacy smart-mqtt.yaml file is removed; all settings are now supplied via system properties ( -D flags) or environment variables, aligning with Twelve‑Factor App principles and simplifying cloud‑native deployment.
Performance Test Findings
Test environment upgrade
The benchmark switched from Docker to Podman while keeping identical server hardware and using the same MQTT load‑testing toolset.
QoS0 throughput – 1 000 000 msg/s in Podman, 200 000 msg/s higher than the 800 000 msg/s observed in Docker.
QoS1/2 performance – throughput increased by more than one million messages per second compared with the previous version.
Resource efficiency – CPU and memory usage were further optimized.
Feature Refactoring Details
Memory optimization
Re‑engineered the topic‑tree storage to reduce redundant object creation.
Optimized subscription reference management to lower memory overhead.
Introduced intelligent cache‑reuse strategies, reducing GC pressure.
Improved memory efficiency for large‑scale connection scenarios.
Maven dependency restructuring
Deeply analyzed project dependencies and removed unnecessary transitive dependencies.
Optimized dependency scope declarations to cut runtime dependencies.
Unified version management to avoid conflicts.
Improved build speed and runtime performance.
Logging system enhancements
Refined log output format for better readability.
Adjusted log‑level configuration to aid debugging.
Boosted logging performance and reduced I/O overhead.
Added richer context information to simplify issue tracing.
Plugin improvements
Cluster plugin – stabilized reconnection logic, refined fault detection, and improved node‑state synchronization for large‑scale clusters.
Enterprise plugin – added self‑healing mechanisms, automatic restart on service failures, health‑check configuration, and storage‑structure optimizations for higher data consistency and reliability.
Marketplace migration – relocated the plugin market to a new service address, delivering faster, more stable access and streamlined download, installation, and update processes.
Technical Metrics Comparison
Package size: 3 MB → 800 KB (‑73 %).
Configuration method: YAML file → environment variables / system properties (modernized).
Memory usage: reduced by 30‑40 %.
Deployment complexity: medium → simple.
Acquisition
Download links
GitHub Releases: https://github.com/smartboot/smart-mqtt/releases/tag/v1.4.0
Gitee Releases: https://gitee.com/smartboot/smart-mqtt/releases/v1.4.0
Docker deployment
docker run --name smart-mqtt \
-p 1883:1883 \
-p 18083:18083 \
-d smartboot/smart-mqtt:latestFuture Outlook
Deepening cloud‑native support – further enhancements to Kubernetes Operator and Helm Chart integration.
Continuous performance tuning – ongoing exploration of additional optimizations.
Observability – expanded metrics, tracing, and logging capabilities.
Plugin ecosystem – development of more enterprise‑grade plugins and richer functionality.
Developer experience – improvements to documentation, toolchain and overall usability.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Three Knives
Every line of code you contribute to open source could help make the future better.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
