2026-03-16 16:54:57 +08:00
2025-12-08 10:40:43 +08:00
2026-03-16 16:54:57 +08:00
2025-12-08 10:40:43 +08:00
2025-12-08 10:40:43 +08:00
2025-12-08 10:40:43 +08:00
2025-12-08 10:40:43 +08:00
2025-12-08 10:40:43 +08:00
2025-12-08 10:40:43 +08:00
2025-12-08 10:40:43 +08:00
2025-12-08 10:40:43 +08:00
2025-12-08 10:40:43 +08:00
2025-12-08 10:40:43 +08:00
2025-12-08 10:40:43 +08:00
2025-12-08 10:40:43 +08:00
2025-12-08 10:40:43 +08:00
2025-12-08 10:40:43 +08:00
2025-12-08 10:40:43 +08:00
2025-12-08 10:40:43 +08:00

🌐 Dromara mica mqtt

Java CI JAVA 8 Mica Maven release Mica Maven SNAPSHOT GitHub

star star GitHub Repo stars


📖English | 📖简体中文

Dromara mica-mqtt is a low-latency, high-performance MQTT IoT component designed for seamless integration and scalability. For detailed usage guides, refer to the mica-mqtt-example module.

🍱 Use Cases

  • Internet of Things (cloud-based MQTT broker)
  • Internet of Things (edge messaging communication)
  • Group IM
  • Message push
  • Easy-to-use MQTT client

🚀 Key Advantages

  • Simplicity & Flexibility: Intuitive design for easy integration while retaining extensibility for advanced use cases.
  • Manual Control: Explicit API design to facilitate secondary development and customization.
  • Future-ready: Built with scalability in mind, supporting evolving IoT requirements.

Features

  • Supports MQTT v3.1, v3.1.1, and v5.0 protocols.
  • Supports WebSocket MQTT sub-protocol (fully compatible with mqtt.js).
  • Supports HTTP REST API - see HTTP API Documentation for details.
  • Support for MQTT client, support Android native.
  • Support for MQTT server, support Android native.
  • Support for MQTT Will messages.
  • Support for MQTT Retained messages.
  • Support for custom message (MQ) processing and forwarding to achieve clustering.
  • MQTT client Alibaba Cloud MQTTHuaWei MQTT connection demo.
  • Support for GraalVM compilation into native executable programs.
  • Support for rapid access to Spring Boot、Solon and JFinal projects.
  • Spring boot and Solon client plugins support session retention.
  • Support for integration with Prometheus + Grafana for monitoring.
  • Cluster implementation based on Redis pub/sub, see mica-mqtt-broker module for details.

🌱 To-do

  • Optimize the handling of MQTT server sessions and simplify the use of MQTT v5.0.
  • Implement rule engine based on easy-rule + druid sql parsing.

🚨 Default Ports

Port Protocol Description
1883 tcp mqtt tcp port
8883 tcp ssl mqtt tcp ssl port
8083 websocket websocket mqtt port
8084 websocket ssl websocket ssl mqtt port
18083 http http、MCP api port

Demo Address: mqtt.dreamlu.net, same portsusername: mica password: mica

📦 Dependencies

Spring Boot Project

Client:

<dependency>
  <groupId>org.dromara.mica-mqtt</groupId>
  <artifactId>mica-mqtt-client-spring-boot-starter</artifactId>
  <version>${mica-mqtt.version}</version>
</dependency>

Configuration Details: mica-mqtt-client-spring-boot-starter Documentation

Server:

<dependency>
  <groupId>org.dromara.mica-mqtt</groupId>
  <artifactId>mica-mqtt-server-spring-boot-starter</artifactId>
  <version>${mica-mqtt.version}</version>
</dependency>

Configuration Details: mica-mqtt-server-spring-boot-starter Documentation

Non-Spring Boot Project

Client:

<dependency>
  <groupId>org.dromara.mica-mqtt</groupId>
  <artifactId>mica-mqtt-client</artifactId>
  <version>${mica-mqtt.version}</version>
</dependency>

Configuration Details: mica-mqtt-client Documentation

Server:

<dependency>
  <groupId>org.dromara.mica-mqtt</groupId>
  <artifactId>mica-mqtt-server</artifactId>
  <version>${mica-mqtt.version}</version>
</dependency>

Configuration Details: mica-mqtt-server Documentation

📝 Documentation

🍻 Open Source Recommendations

📱 WeChat

DreamLuTech

JAVA Architecture Diary, daily recommended exciting content!

Description
mqtt对接车辆摄像头项目
Readme Apache-2.0 663 KiB
Languages
Java 99.9%
Shell 0.1%