MQTT Protocol Overview

MQTT Protocol:

  • MQTT Broker — All messages passed from the client to the server should be sent via the broker.
  • MQTT Server — The API acts as an MQTT server. The MQTT server will be responsible for publishing the data to the clients.
  • MQTT Client — Any third party client who wishes to subscribe to data published by API, is considered as an MQTT Client.
MQTT Communication Program
MQTT Communication Program
Flow of data from API Module to the External clients

MQTT Broker — EMQTT:

  • Receive all messages
  • Filter messages
  • Decide which are interested clients
  • Publish messages to all the subscribed clients
MQTT Broker — EMQTT

MQTT Topics:

MQTT Topics
Topics exposed by API

Features supported by MQTT:

1. Authentication:

2. Access Control:

3. QoS:

  • At most once(0) -The message is delivered at most once, or it is not delivered at all.
  • At least once(1) — The message is always delivered at least once.
  • Exactly once(2) — The message is always delivered exactly once.

4. Last Will Message:

5. Retain Message:

6. Duplicate Message:

7. Session:

Features not-supported by MQTT:

1. Not RESTful:

2. Obtaining Subscription List:

MQTT Wildcards:

1. Plus sign(+):

2. Hash Sign(#):

MQTT Test tools:

Difference between MQTT & AMQP:

Difference between MQTT & HTTP:

Conclusion:

--

--

--

Velotio Technologies is an outsourced software and product development partner for technology startups & enterprises. #Cloud #DevOps #ML #UI #DataEngineering

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Structured Query Language

An Introduction to JVM Bytecode

Amazon Web Services (AWS) provides a wide range of products and services for all your enterprise…

CS 373 Spring 2021 Week 3: Melanie De La Cruz

Time Tracking in Salesforce

Introduction to Character Set and Character Encoding For WordPress Users

Python’s Modulo

Automation using available APIs — Azure DevOps

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Velotio Technologies

Velotio Technologies

Velotio Technologies is an outsourced software and product development partner for technology startups & enterprises. #Cloud #DevOps #ML #UI #DataEngineering

More from Medium

Deep Deformable Image Registration

Why’s — Industrial IoT?

TryHackMe Walkthrough- Bounty Hacker: CTF

Decoding Log4j vulnerability. Comprehensive guide.