• Stars
    star
    262
  • Rank 151,182 (Top 4 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created over 3 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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 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.

Our design principles focused on ensuring the broker’s fault tolerance and high availability. Thus, we deliberately avoided reliance on master or coordinated processes. We ensured the same functionality across all nodes within the cluster.

We prioritized supporting distributed processing, allowing for effortless horizontal scalability as our operations grow. We wanted our broker to support high-throughput and guarantee low-latency delivery of messages to 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

More Repositories

1

thingsboard

Open-source IoT Platform - Device management, data collection, processing and visualization.
Java
15,026
star
2

thingsboard-gateway

Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
Python
1,576
star
3

flutter_thingsboard_app

ThingsBoard Mobile Application
Dart
189
star
4

thingsboard.github.io

Documentation repository
JavaScript
118
star
5

thingsboard-python-client-sdk

ThingsBoard client Python SDK
Python
100
star
6

thingsboard-edge

Java
81
star
7

flutter_thingsboard_pe_app

ThingsBoard PE Mobile Application
Dart
75
star
8

thingsboard-python-rest-client

ThingsBoard REST API client
Python
66
star
9

dart_thingsboard_client

ThingsBoard API client library for Dart developers.
Dart
58
star
10

thingsboard-ce-k8s

ThingsBoard Community Edition Kubernetes scripts and docs
Shell
57
star
11

esp32-ota

ESP32 OTA based on ThingsBoard Open-source IoT Platform
C
49
star
12

ngx-flowchart

ngx-flowchart is Angular 8 library to enable drag&drop modelling of graphs in web applications
TypeScript
47
star
13

dart_thingsboard_pe_client

ThingsBoard PE API client library for Dart developers.
Dart
46
star
14

performance-tests

Thingsboard performance tests
Java
39
star
15

samples

Thingboard sample applications
Java
32
star
16

thingsboard-rule-config-ui-ngx

TypeScript
27
star
17

thingsboard-rule-config-ui

Configuration UI for ThingsBoard Rule Nodes
HTML
21
star
18

thingsboard-pe-k8s

ThingsBoard Professional Edition Kubernetes scripts and docs
Shell
19
star
19

rule-node-examples

Examples of custom Rule Nodes for ThingsBoard contribution guide
Java
13
star
20

rule-node-examples-ui-ngx

TypeScript
11
star
21

thingsboard-pe-docker-compose

Docker configuration example for ThingsBoard PE Microservices
Shell
10
star
22

thingsboard-micropython-client-sdk

Python
9
star
23

thingsboard-extensions

TypeScript
8
star
24

tb-k8s-perf-tests

ThingsBoard PE performance test scripts
Shell
7
star
25

thingsboard-udp-loadbalancer

ThingsBoard UDP Load Balancer designed for CoAP and LwM2M
Java
6
star
26

remote-integration-example

Sample application for custom remote integration
Java
6
star
27

custom-oauth2-mapper

This project provides a sample of custom mapper of OAuth 2.0 external user into ThingsBoard internal user object
Java
5
star
28

tb-ble-adapter

BLE adapter script for connecting devices to ThingsBoard
Python
4
star
29

tb-ce-rest-client-example

Java
4
star
30

docker

Base docker images that are used by ThingsBoard micro-services architecture deployment scenarios
Dockerfile
4
star
31

gatts_demo

BLE GATT demo using ESP32
C
4
star
32

thingsboard-pe-ui-types

TypeScript
3
star
33

kafka-streams-example

Example of ThingsBoard and Kafka integration
Java
3
star
34

database-migrator

Java
2
star
35

tb-monitoring-tool

This is tool to monitor TB instances
Java
2
star
36

sparkplug-emulator

Java
1
star
37

thingsboard-ui-help

ThingsBoard UI Help Assets
1
star
38

rule-node-examples-ui

Examples of UI for custom Rule Nodes for ThingsBoard contribution guide
JavaScript
1
star
39

tb-pe-rest-client-example

Java
1
star
40

python_tb_rest_client_generator

Python ThingsBoard Rest Client Generator
Python
1
star