DEV Community

Isaac Thani
Isaac Thani

Posted on

1

MQTT vs HTTP at a Glance!

2,5.

Today I will just talk about Communication with Devices.
I'm gradually developing interest for IoT and will actually work on the projects I have always wanted to work on.

MQTT vs HTTP at a Glance

Alt MQTT vs HTTP

MQTT is an industry-standard IoT protocol (Message Queue Telemetry Transport). It is a publish/subscribe (pub/sub) messaging protocol.

HTTP is a "connectionless" protocol: with the HTTP bridge, devices do not maintain a connection to the cloud. Instead, they send requests and receive responses.

From Industrial IoT on Google Cloud Platform on Coursera

Delivery Guarantees
MQTT has three levels of service:

  • At most once. Guarantees at least one attempt at delivery.
  • At least once. Guarantees the message will be delivered at least once.
  • Exactly once. Guarantees the message is delivered only once.

MQTT also has:

  • Last will and testament. If a client (ie device) is disconnected unexpectedly, the subscribers will be notified by the MQTT broker.
  • Retained messages. New subscribers will get an immediate status update.

The ride is getting more interesting for me!

Protocols - GoogleCloud

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs