Skip to content

Open-source MQTT broker - facilitates MQTT client connectivity, message publishing, and distribution among subscribers.

License

Notifications You must be signed in to change notification settings

codestudy1234/tbmq

 
 

Repository files navigation

TBMQ

Join the chat at https://gitter.im/tbmq/chat TBMQ Builds Server Status

TBMQ represents an open-source MQTT message broker with the capacity to handle 4M+ concurrent client connections, supporting a minimum of 3M messages per second throughput per single cluster node with low latency delivery. In the cluster mode, its capabilities are further enhanced, enabling it to support more than 100M concurrently connected clients.

At ThingsBoard, we've gained a lot of experience in building scalable IoT applications, which has helped us identify two main scenarios for MQTT-based solutions. In the first scenario, numerous devices are generating a substantial volume of messages that are consumed by specific applications, resulting in a fan-in pattern. On the other hand, the second scenario involves numerous devices subscribing to specific updates or notifications that must be delivered. This leads to a few incoming requests that cause a high volume of outgoing data. This case is known as a fan-out pattern. Acknowledging these scenarios, we intentionally designed TBMQ to be exceptionally well-suited for both.

Our design principles focused on ensuring the broker's fault tolerance and high availability. We wanted to implement a reliable mechanism for message processing, capable of handling any potential failures that may arise among the participants in the data flow. Additionally, we prioritized supporting distributed and partitioned processing, allowing for effortless horizontal scalability as our operations grow. We wanted our broker to support high-throughput processing, guaranteeing low-latency delivery of messages to clients, and providing the ability to withstand peak loads from publishing clients while ensuring backup storage for offline clients. Ensuring data durability and replication was crucial in our design. We aimed for a system where once the broker acknowledges receiving a message, it remains safe and won't be lost.

TBMQ provides compatibility with both MQTT v3.x and v5.0 protocols. Last but not least, it had been running in production for more than a year before being open-sourced.

TBMQ Home

TBMQ Sessions

Documentation

TBMQ documentation is hosted on thingsboard.io.

Getting Started

Connect clients and Publish your IoT data in minutes by following this guide.

Installation

Review different TBMQ installation options by following this link.

Licenses

This project is released under Apache 2.0 License.

MQTT 5 supported features:

  • User Properties
  • Reason Codes for MQTT packets
  • Session Clean Start
  • New Data Type: UTF-8 String pairs
  • Bi-directional DISCONNECT packets
  • Using passwords without usernames
  • Session expiry feature
  • Message expiry feature
  • Shared subscriptions
  • Subscription options
  • Topic aliases
  • Maximum Packet Size
  • Will delay
  • Server Keep-Alive
  • Assigned ClientID
  • Server reference
  • The payload format and content types

MQTT 5 features in active development:

  • AUTH packet & Enhanced Authentication
  • Request / Response & Correlation Data
  • Flow Control
  • Subscription Identifiers

About

Open-source MQTT broker - facilitates MQTT client connectivity, message publishing, and distribution among subscribers.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 67.1%
  • TypeScript 21.3%
  • HTML 5.2%
  • SCSS 3.7%
  • Shell 1.1%
  • JavaScript 0.7%
  • Other 0.9%