Back

MQTT - Introduction

INTRODUCTION

What about MQTT?

Have you heard about MQTT? Hope you have, but if you haven’t, don’t worry you’ll be hearing more about it in the next months since it’s becoming popular.

MQTT is the most popular protocol used for IoT (internet of things) but don’t get confused, MQTT isn’t only for IoT, as it is a protocol it can be used in most of the communication situations, like TCP/IP does, but there are some great things that becomes MQTT special and unique to solve a communication problem.

History

MQTT was born in the IBM labs in 1999, when they faced a situation where they needed to save battery energy and use minimal bandwidth communication for a satellite connection. MQTT has a long story about its supposed acronym meanning, but what you should know about it, is: that the acronym does not exists anymore and you should only call it MQTT. Courious fact: I know about MQTT because of its acronym meanning that comes from an old IBM product called “MQ Series” that uses this “Telemetry Transport” protocol.

Well, after some history we can pass to a more excited section that defines to us the MQTT protocol.

What really is MQTT?

MQTT is a lightweightm, open, simple and easy to implement Client Server publish/subscribe messaging transport protocol.

“lightweight” because is binary and it has only minimal packet overhead.
“open” because since it became standard, the OASIS open organization took it under their tutelage.
“simple” because is extremely easy to implement in the client side.

Therfore, it was created to run over constrained devices with limited resources.

Ta, Tan! Yep, these are the things that makes MQTT special. Think on these 3 things, related to the constrained and limited devices. First, the devices, what kind of devices are limited? a Microwave, a Refrigerator, a Watch, etc., ok then start thinking, why you want to communicate your microwave or refrigerator to other devices more complex and less limited? Because we’re in the XXI century and we’re smart people and we’re programmers and someone has invented a lightweight and simple protocol to do that and taking in account all of these reasons, just because we want smart houses, smart cities and change the world, so please start thinking on this when you want to learn more about MQTT and you want to use it to solve a communication problem.

In the next post I’ll tell you more about the Client Server and publish/subscribe transport protocol.

basura
Built with Hugo
Theme Stack designed by Jimmy