MQTT logo

MQTT

A machine-to-machine Internet of Things connectivity protocol
607
569
+ 1
7

What is MQTT?

It was designed as an extremely lightweight publish/subscribe messaging transport. It is useful for connections with remote locations where a small code footprint is required and/or network bandwidth is at a premium.
MQTT is a tool in the Message Queue category of a tech stack.

Who uses MQTT?

Companies
85 companies reportedly use MQTT in their tech stacks, including doubleSlash, energy2market, and Ford Otosan.

Developers
391 developers on StackShare have stated that they use MQTT.

MQTT Integrations

TimescaleDB, StreamSets, JSON-RPC, Huginn, and Apache APISIX are some of the popular tools that integrate with MQTT. Here's a list of all 10 tools that integrate with MQTT.
Pros of MQTT
3
Varying levels of Quality of Service to fit a range of
2
Lightweight with a relatively small data footprint
2
Very easy to configure and use with open source tools
Decisions about MQTT

Here are some stack decisions, common use cases and reviews by companies and developers who chose MQTT in their tech stack.

Shared a protip
on
MQTTMQTTReductStoreReductStore

You can use ReductStore to keep a history of MQTT messages by using its Client SDKs. This can be useful if you use a binary format for your data and it can be recorded in a classical TSDB. You can set a FIFO quota for a bucket in your ReductStore instance so that the database removes old MQTT messages when the limit is reached.

See more
Needs advice
on
GraphQLGraphQLgRPCgRPC
and
MQTTMQTT

Hi All,

I'm looking to develop an ESP32-based local (that is the hub is on the same network) and small (usually no more than 10 devices per hub) IoT network over wifi.

For Most of the runtime, the devices report readings with max 1s frequency to the hub, and MQTT is great for this. But I'm looking for future needs such as FOTA, and maybe some RPC on the devices. MQTT can be used to execute functions (with the result reported on another topic) on the edge devices but it feels hacky and wrong long term.

I've looked at various IoT frameworks, but many are paid which is a non-starter or seems like overkill (like a cloud backend for millions of devices). I'm looking for the best tools for a small device network, running on a local resource-constrained Linux.

I'm hoping for open-ended feedback or some library recommendations for further reading, Many thanks in advance!

See more
Reza Saadat
IoT Solutions Architect at GreenEdge · | 5 upvotes · 83.8K views
Needs advice
on
MQTTMQTT
and
NATSNATS

I want to use NATS for my IoT Platform and replace it instead of the MQTT broker. is there any preferred added value to do that?

See more
Needs advice
on
BlazeMeterBlazeMeterGatlingGatling
and
k6k6

Kindly suggest the best tool for generating 10Mn+ concurrent user load. The tool must support MQTT traffic, REST API, support to interfaces such as Kafka, websockets, persistence HTTP connection, auth type support to assess the support /coverage.

The tool can be integrated into CI pipelines like Azure Pipelines, GitHub, and Jenkins.

See more

MQTT Alternatives & Comparisons

What are some alternatives to MQTT?
RabbitMQ
RabbitMQ gives your applications a common platform to send and receive messages, and your messages a safe place to live until received.
REST
An architectural style for developing web services. A distributed system framework that uses Web protocols and technologies.
XMPP
It is a set of open technologies for instant messaging, presence, multi-party chat, voice and video calls, collaboration, lightweight middleware, content syndication, and generalized routing of XML data.
Google Cloud Messaging
Google Cloud Messaging (GCM) is a free service that enables developers to send messages between servers and client apps. This includes downstream messages from servers to client apps, and upstream messages from client apps to servers.
Kafka
Kafka is a distributed, partitioned, replicated commit log service. It provides the functionality of a messaging system, but with a unique design.
See all alternatives

MQTT's Followers
569 developers follow MQTT to keep up with related blogs and decisions.