What is NanoMQ?
NanoMQ serves as an ultra-lightweight and high-performance MQTT broker specifically engineered for IoT edge computing environments. It provides a fully compliant MQTT 5.0/3.1.1 implementation with support for multiple protocols including ZeroMQ, nanomsg, NNG, and WebSocket, enabling flexible routing topologies at the edge.
The architecture features an asynchronous I/O model with built-in actor-model parallelism, multi-threading for efficient CPU usage on SMP systems, and a platform adaptor layer for cross-platform compatibility. It includes key functionalities such as MQTT bridges for cloud connectivity, message persistence for data reliability, a SQL-based rule engine for data processing, and WebHooks for event-driven integration.
Features
- Fully MQTT 5.0 Compliant: Supports MQTT 5.0/3.1.1 and compatibility with standard open-source MQTT SDKs
- Ultra-lightweight: Booting footprint less than 200Kb in minimum feature set for edge deployment
- Blazing Fast: Achieves million-level TPS, up to 10 times faster than Mosquitto on multi-core CPUs
- Multi-threading: Scales easily across multiple cores with reduced CPU usage in SMP systems
- Cross-platform: Highly compatible and portable across any POSIX-based platform
- Message Persistence: Preserves business-critical data with built-in persistence and automatic resume on reconnection
- Rule Engine: SQL-based rule engine for flexible data processing, integrating with eKuiper for stream processing
- Protocol Interoperability: Supports multiple protocols including ZeroMQ, nanomsg, NNG, and WebSocket for diverse routing
Use Cases
- IoT edge computing deployments requiring lightweight MQTT brokers
- Industrial IoT applications needing high-throughput message processing
- Smart home and building automation systems
- Connected vehicle and transportation networks
- Agricultural and environmental monitoring with edge devices
- Healthcare IoT devices requiring reliable message delivery
- Energy management and smart grid systems
- Retail and supply chain tracking with edge connectivity