What is MQTT Broker and How it works - FAQ

What is MQTT?

The standard form of MQTT is Message Queuing Telemetry Transport protocol authored by Andy Stanford Clark. MQTT is the most commonly used OASIS standard communication protocol for small sensors, IoT devices and mobile devices in small and large scale (Internet of Things) IOT Deployments. It is a light weight publish and subscribe system because of its small code footprint where you can publish data and receive messages as a client. This protocol runs over TCP/IP. It also provides ordered, Network bandwidth-efficient, lossless and bi-directional support.

Which MQTT version does MQTTRoute support?

MQTTRoute supports MQTT protocol version, 3.1 & 3.1.1.

What is an MQTT Broker?

MQTT Broker is the central server connected to the internet. MQTT devices needs the central MQTT message broker to communicate each other. The MQTT Broker is primarily responsible for receiving all messages from publisher clients and publishing messages to the subscriber clients at the subscribed MQTT topic.

How does MQTTRoute support scaling?

MQTT Broker is built using C at the core level which can scale up to 30 to 40,000 client connections in a single commodity server. In addition it supports proper clustering and it is designed for ambitiously big deployments. The high availability mode of MQTT Broker using High availability server which prevents failure for MQTT communication. Our IoT platform which is a complete SaaS based Framework targeting large scale multi tenancy has High availability built inside it.

How does a MQTT Broker work?

Like any other internet protocol, MQTT is based on clients and server. The broker handles the MQTT client’s requests of receiving or sending data between each other. The clients that connects to the broker are publishing & subscribing to topics. The broker handles publishing / subscribing actions to the target topics.

Can MQTT Brokers be meshed?

Inter broker links are not a part of official mqtt spec, so they can be meshed with any protocol.

How can I add a new virtual client?

You can add a new virtual client through the user interface. You can refer help documentation for further details.

Is MQTT Secure ? How secure is your MQTT Broker ?

MQTT spec defines security with TLS and the MQTT authentication. MQTT Broker defines the access levels over the authentication. Bevywise MQTT Broker has the most powerful and flexible security options. It works with all standard SSL / TLS certificate for secure data flow. It provides option to create individual and highly secure authentication keys (username and password for each devices.

How does MQTT Broker stores data ?

MQTT Broker stores the data into database. Most MQTT Brokers don’t provide any built-in mechanism to save MQTT data into database. But MQTTRoute stores stateful data in MySQL & payloads in Elastic search by default.

Is it possible to customize Storage of the device data behind MQTT Broker ?

Yes. MQTTRoute provides option to store the data in any of your analytics / Big data engines such as MySQL, SQLite, MSSQL, Elastic search , MongoDB , Redis through custom storage module.

How to visualize MQTT Data ?

MQTT data can be visualized by sending the data to the data visualization tool. MQTTRoute stores data to any analytics / big data engine via custom implementation for better data visualization. MQTT Broker Tableau integration will help you store all your data in the format you needed into the Tableau for a perfect data analysis.

Will it be possible to customize widgets based on the data?

Yes. MQTTRoute provides customizable user interface to display your data as required for your use case. You can add your own widgets to the user interface based on the data.

Why MQTTRoute is the best MQTT broker service for IoT?

MQTTRoute is the light weight middle ware which is perfect for IoT application. It works with all standard MQTT clients and at the same time it can be customized to store data to any back end big data engine or application. Unlike other open source MQTT Brokers, it has a ready to use connectors to customize.

Can the Bevywise MQTT Broker be hosted on cloud?

Yes. A broker can be hosted on any private network or any cloud servers like Amazon EC2 , Microsoft Azure, GCP , Rackspace, or digital ocean.

How to install MQTT Broker in windows?

MQTT Broker supports windows versions such as Windows 7, Windows 8, 8.1 & Windows 10 & Windows Server 2012 & 2016. To install Bevywise MQTT Broker in windows read help .

Why can't I run MQTT Broker in windows? Got the below mentioned error.

C:\Program Files\Bevywise\MQTTRoute\bin>runbroker.bat

[MQTTROUTE]19:05:2021 12:25:43 – Bevywise MQTTRoute 3.2 – build 0421-029

Traceback (most recent call last):

File “Broker.py”, line 3, in < module>




File “logging_init.py”, line 1008, in init

File “logging_init_.py”, line 1037, in _open

PermissionError: [Errno 13] Permission denied: ‘C:\\Program Files\\Bevywise\\MQTTRoute\\bin\\broker.log’

[8712] Failed to execute script Broker

If you get above mentioned error, run the MQTT Broker as administrator in windows.

How to install MQTT Broker in Ubuntu ?

MQTT Broker supports Linux. To install Bevywise MQTT Broker in ubuntu read help .

How to configure MQTT Broker ?

The MQTTRoute can be configured using the broker.conf file inside the conf folder. For more details read help .

How to start MQTT Broker as a service ?

Using Task Scheduler, you can run Broker as a service to achieve 99.99% uptime. To start MQTT Broker as a service read help .

Can I run MQTTRoute using Docker or Kubernettes ?

Yes. MQTTRoute can be dockerized and easily managed. You can run it as an independent docker or can be controlled via kubernettes alone with your other applications as needed.

What is the difference between MQTT Route and MQTT Server?

MQTTServer is an extendable MQTT Platform where you can write your own extension to analyse the data processed by the MQTTServer. You can write your own rule engine to make decisions. MQTTRoute is ready to use and can run on a single machine and can allow client connections based on the machine configuraiton.

How much clients does your MQTT Server support?

The MQTT Server is horizontally scalable framework. You can add as many mqtt processing brokers in parallel to scale based on the number of clients you want to connect.

Does MQTT Server support Distributed Environment?

Yes, you can host different components of the mqtt server in different VMs for better performance.

Can I develop my own extension?

Yes, mqtt server keeps the mqtt messages received from the different clients. You can write your own extension to read and process the data queue.

Is MQTT Server transform the message with rules?

Yes, there is a separate package available in MQTTServer . You can use it when you need.

Does MQTT Server supports UI?

Yes, You can view the client details in the browser.

What are the components you can customize?

You can customize anything you want based on the business need. The broker core and the distribution engine are the core components.

Want to know the common FAQs of all our products?

Visit our FAQ page.

Explore now