TBMQ: Open-Source MQTT Broker

TBMQ is an open-source MQTT broker that is designed with great care to implement the following attributes:

  • Scalability: it is a horizontally scalable platform constructed using cutting-edge open-source technologies;
  • Fault tolerance: no single point of failure; each broker (node) within the cluster is identical in terms of functionality;
  • Robustness and efficiency: can manage millions of clients and process millions of messages per second; 
  • Durability: provides high message durability, ensuring that data is never lost.

TBMQ NodeMotivation

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 generate a large volume of messages that are consumed by specific applications, resulting in a fan-in pattern. Normally, a few applications are set up to handle these lots of incoming data. They must be persistent clients with a Quality of Service (QoS) level set to 1 or 2, capable of retaining all the data even when they're temporarily offline due to restarts or upgrades. This ensures applications don't miss any single message. 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.

CategoriesUncategorized