Click Below to Get the Code

Browse, clone, and build from real-world templates powered by Harper.
Tutorial
GitHub Logo

The Easiest Way to Use MQTT: A Hands-On Demo with Harper’s Built-In Broker

Learn how MQTT works and see a real-time demo using Harper’s built-in MQTT broker. Discover topics, Pub/Sub, QoS, retained messages, and how Harper simplifies IoT and edge data workflows. Watch how to publish, subscribe, and store sensor data instantly with an easy, developer-friendly setup.
Harper Learn
Tutorial
Harper Learn

The Easiest Way to Use MQTT: A Hands-On Demo with Harper’s Built-In Broker

By
Ivan R. Judson, Ph.D.
December 12, 2025
By
Ivan R. Judson, Ph.D.
December 12, 2025
By
Ivan R. Judson, Ph.D.
December 12, 2025
December 12, 2025
Learn how MQTT works and see a real-time demo using Harper’s built-in MQTT broker. Discover topics, Pub/Sub, QoS, retained messages, and how Harper simplifies IoT and edge data workflows. Watch how to publish, subscribe, and store sensor data instantly with an easy, developer-friendly setup.
Ivan R. Judson, Ph.D.
Distinguished Solution Architect
The full source code demonstrated in the video is available here: https://github.com/HarperFast/mqtt-getting-started


MQTT has become one of the most widely adopted protocols for real-time messaging in IoT and distributed systems. Its lightweight footprint, simple publish–subscribe pattern, and resilience in unreliable network environments make it a natural choice for sensors, edge devices, and telemetry workloads. But while MQTT is powerful, setting up and managing a broker, handling authentication, storing messages, and integrating data into applications can quickly become more complex than developers expect.

In this week’s episode, Ivan walks through the fundamentals of MQTT—what it is, how it works, and how Harper dramatically simplifies the developer experience by including MQTT natively inside its unified application platform.

MQTT consists of two core components: clients and a broker. Clients publish messages to topics, and other clients subscribe to those topics to receive data. This Pub/Sub model enables decoupled, scalable real-time communication. MQTT also supports useful features such as Quality of Service (QoS) levels for delivery guarantees and retained messages for storing the most recent data on a topic.

Where Harper really shines is in how effortlessly it integrates this protocol into the platform. When you install and run Harper, MQTT is already enabled out of the box—no configuration, provisioning, or third-party services required. The broker runs on the standard MQTT ports, supports authentication by default, and includes WebSocket capabilities for modern applications. Developers can begin publishing and subscribing immediately using any MQTT client or library in languages like JavaScript, Python, or even command-line tools.

Even more compelling is Harper’s ability to persist retained messages directly into a table. In the example from the video, a simple temperature sensor publishes readings to a topic. When retained mode is enabled, Harper automatically stores each message in a sensors table—no extra wiring, no additional database setup. This makes it possible to combine real-time streams with long-term storage, analysis, and alerting using the same platform.

Harper’s built-in MQTT support allows developers to build IoT, AI-at-the-edge, and event-driven systems in minutes rather than days. With one small, unified runtime providing database, caching, messaging, and application logic, it removes the complexity of managing multiple services and lets you focus on building meaningful real-time experiences.

If you’re exploring MQTT or building sensor-driven applications, this demo shows just how much faster—and simpler—the process can be with Harper. Check out the video and follow along with the sample code to get started.

The full source code demonstrated in the video is available here: https://github.com/HarperFast/mqtt-getting-started


MQTT has become one of the most widely adopted protocols for real-time messaging in IoT and distributed systems. Its lightweight footprint, simple publish–subscribe pattern, and resilience in unreliable network environments make it a natural choice for sensors, edge devices, and telemetry workloads. But while MQTT is powerful, setting up and managing a broker, handling authentication, storing messages, and integrating data into applications can quickly become more complex than developers expect.

In this week’s episode, Ivan walks through the fundamentals of MQTT—what it is, how it works, and how Harper dramatically simplifies the developer experience by including MQTT natively inside its unified application platform.

MQTT consists of two core components: clients and a broker. Clients publish messages to topics, and other clients subscribe to those topics to receive data. This Pub/Sub model enables decoupled, scalable real-time communication. MQTT also supports useful features such as Quality of Service (QoS) levels for delivery guarantees and retained messages for storing the most recent data on a topic.

Where Harper really shines is in how effortlessly it integrates this protocol into the platform. When you install and run Harper, MQTT is already enabled out of the box—no configuration, provisioning, or third-party services required. The broker runs on the standard MQTT ports, supports authentication by default, and includes WebSocket capabilities for modern applications. Developers can begin publishing and subscribing immediately using any MQTT client or library in languages like JavaScript, Python, or even command-line tools.

Even more compelling is Harper’s ability to persist retained messages directly into a table. In the example from the video, a simple temperature sensor publishes readings to a topic. When retained mode is enabled, Harper automatically stores each message in a sensors table—no extra wiring, no additional database setup. This makes it possible to combine real-time streams with long-term storage, analysis, and alerting using the same platform.

Harper’s built-in MQTT support allows developers to build IoT, AI-at-the-edge, and event-driven systems in minutes rather than days. With one small, unified runtime providing database, caching, messaging, and application logic, it removes the complexity of managing multiple services and lets you focus on building meaningful real-time experiences.

If you’re exploring MQTT or building sensor-driven applications, this demo shows just how much faster—and simpler—the process can be with Harper. Check out the video and follow along with the sample code to get started.

Learn how MQTT works and see a real-time demo using Harper’s built-in MQTT broker. Discover topics, Pub/Sub, QoS, retained messages, and how Harper simplifies IoT and edge data workflows. Watch how to publish, subscribe, and store sensor data instantly with an easy, developer-friendly setup.

Download

White arrow pointing right
Learn how MQTT works and see a real-time demo using Harper’s built-in MQTT broker. Discover topics, Pub/Sub, QoS, retained messages, and how Harper simplifies IoT and edge data workflows. Watch how to publish, subscribe, and store sensor data instantly with an easy, developer-friendly setup.

Download

White arrow pointing right
Learn how MQTT works and see a real-time demo using Harper’s built-in MQTT broker. Discover topics, Pub/Sub, QoS, retained messages, and how Harper simplifies IoT and edge data workflows. Watch how to publish, subscribe, and store sensor data instantly with an easy, developer-friendly setup.

Download

White arrow pointing right

Explore Recent Resources

Repo
GitHub Logo

Edge AI Ops

This repository demonstrates edge AI implementation using Harper as your data layer and compute platform. Instead of sending user data to distant AI services, we run TensorFlow.js models directly within Harper, achieving sub-50ms AI inference while keeping user data local.
JavaScript
Repo
This repository demonstrates edge AI implementation using Harper as your data layer and compute platform. Instead of sending user data to distant AI services, we run TensorFlow.js models directly within Harper, achieving sub-50ms AI inference while keeping user data local.
A man with short dark hair, glasses, and a goatee smiles slightly, wearing a black shirt in front of a nature background.
Ivan R. Judson, Ph.D.
Distinguished Solution Architect
Repo

Edge AI Ops

This repository demonstrates edge AI implementation using Harper as your data layer and compute platform. Instead of sending user data to distant AI services, we run TensorFlow.js models directly within Harper, achieving sub-50ms AI inference while keeping user data local.
Ivan R. Judson, Ph.D.
Jan 2026
Repo

Edge AI Ops

This repository demonstrates edge AI implementation using Harper as your data layer and compute platform. Instead of sending user data to distant AI services, we run TensorFlow.js models directly within Harper, achieving sub-50ms AI inference while keeping user data local.
Ivan R. Judson, Ph.D.
Repo

Edge AI Ops

This repository demonstrates edge AI implementation using Harper as your data layer and compute platform. Instead of sending user data to distant AI services, we run TensorFlow.js models directly within Harper, achieving sub-50ms AI inference while keeping user data local.
Ivan R. Judson, Ph.D.
Blog
GitHub Logo

Why a Multi-Tier Cache Delivers Better ROI Than a CDN Alone

Learn why a multi-tier caching strategy combining a CDN and mid-tier cache delivers better ROI. Discover how deterministic caching, improved origin offload, lower tail latency, and predictable costs outperform a CDN-only architecture for modern applications.
Cache
Blog
Learn why a multi-tier caching strategy combining a CDN and mid-tier cache delivers better ROI. Discover how deterministic caching, improved origin offload, lower tail latency, and predictable costs outperform a CDN-only architecture for modern applications.
Person with short dark hair and moustache, wearing a colorful plaid shirt, smiling outdoors in a forested mountain landscape.
Aleks Haugom
Senior Manager of GTM & Marketing
Blog

Why a Multi-Tier Cache Delivers Better ROI Than a CDN Alone

Learn why a multi-tier caching strategy combining a CDN and mid-tier cache delivers better ROI. Discover how deterministic caching, improved origin offload, lower tail latency, and predictable costs outperform a CDN-only architecture for modern applications.
Aleks Haugom
Jan 2026
Blog

Why a Multi-Tier Cache Delivers Better ROI Than a CDN Alone

Learn why a multi-tier caching strategy combining a CDN and mid-tier cache delivers better ROI. Discover how deterministic caching, improved origin offload, lower tail latency, and predictable costs outperform a CDN-only architecture for modern applications.
Aleks Haugom
Blog

Why a Multi-Tier Cache Delivers Better ROI Than a CDN Alone

Learn why a multi-tier caching strategy combining a CDN and mid-tier cache delivers better ROI. Discover how deterministic caching, improved origin offload, lower tail latency, and predictable costs outperform a CDN-only architecture for modern applications.
Aleks Haugom
Tutorial
GitHub Logo

Real-Time Pub/Sub Without the "Stack"

Explore a real-time pub/sub architecture where MQTT, WebSockets, Server-Sent Events, and REST work together with persistent data storage in one end-to-end system, enabling real-time interoperability, stateful messaging, and simplified service-to-device and browser communication.
Harper Learn
Tutorial
Explore a real-time pub/sub architecture where MQTT, WebSockets, Server-Sent Events, and REST work together with persistent data storage in one end-to-end system, enabling real-time interoperability, stateful messaging, and simplified service-to-device and browser communication.
A man with short dark hair, glasses, and a goatee smiles slightly, wearing a black shirt in front of a nature background.
Ivan R. Judson, Ph.D.
Distinguished Solution Architect
Tutorial

Real-Time Pub/Sub Without the "Stack"

Explore a real-time pub/sub architecture where MQTT, WebSockets, Server-Sent Events, and REST work together with persistent data storage in one end-to-end system, enabling real-time interoperability, stateful messaging, and simplified service-to-device and browser communication.
Ivan R. Judson, Ph.D.
Jan 2026
Tutorial

Real-Time Pub/Sub Without the "Stack"

Explore a real-time pub/sub architecture where MQTT, WebSockets, Server-Sent Events, and REST work together with persistent data storage in one end-to-end system, enabling real-time interoperability, stateful messaging, and simplified service-to-device and browser communication.
Ivan R. Judson, Ph.D.
Tutorial

Real-Time Pub/Sub Without the "Stack"

Explore a real-time pub/sub architecture where MQTT, WebSockets, Server-Sent Events, and REST work together with persistent data storage in one end-to-end system, enabling real-time interoperability, stateful messaging, and simplified service-to-device and browser communication.
Ivan R. Judson, Ph.D.
News
GitHub Logo

Harper Recognized on Built In’s 2026 Best Places to Work in Colorado Lists

Harper is honored as a Built In 2026 Best Startup to Work For and Best Place to Work in Colorado, recognizing its people-first culture, strong employee experience, and values of accountability, authenticity, empowerment, focus, and transparency that help teams thrive and grow together.
Announcement
News
Harper is honored as a Built In 2026 Best Startup to Work For and Best Place to Work in Colorado, recognizing its people-first culture, strong employee experience, and values of accountability, authenticity, empowerment, focus, and transparency that help teams thrive and grow together.
Colorful geometric illustration of a dog's head resembling folded paper art in shades of teal and pink.
Harper
News

Harper Recognized on Built In’s 2026 Best Places to Work in Colorado Lists

Harper is honored as a Built In 2026 Best Startup to Work For and Best Place to Work in Colorado, recognizing its people-first culture, strong employee experience, and values of accountability, authenticity, empowerment, focus, and transparency that help teams thrive and grow together.
Harper
Jan 2026
News

Harper Recognized on Built In’s 2026 Best Places to Work in Colorado Lists

Harper is honored as a Built In 2026 Best Startup to Work For and Best Place to Work in Colorado, recognizing its people-first culture, strong employee experience, and values of accountability, authenticity, empowerment, focus, and transparency that help teams thrive and grow together.
Harper
News

Harper Recognized on Built In’s 2026 Best Places to Work in Colorado Lists

Harper is honored as a Built In 2026 Best Startup to Work For and Best Place to Work in Colorado, recognizing its people-first culture, strong employee experience, and values of accountability, authenticity, empowerment, focus, and transparency that help teams thrive and grow together.
Harper