Click Below to Get the Code

Browse, clone, and build from real-world templates powered by Harper.
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
Harper Learn

Real-Time Pub/Sub Without the Stack

By
Ivan R. Judson, Ph.D.
January 9, 2026
By
Ivan R. Judson, Ph.D.
January 9, 2026
By
Ivan R. Judson, Ph.D.
January 9, 2026
January 9, 2026
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.
Distinguished Solution Architect

‍

Real-time systems usually accumulate infrastructure. One service handles device messaging, another manages browser connections, a third exposes APIs, and additional layers keep state consistent between them. Each component solves a specific problem, but the system only works once everything is stitched together.

The demo in this video takes a different approach. It shows what real-time pub/sub looks like when storage, messaging, and protocol handling live in the same runtime.

‍

State as the System Boundary

The LED sign in the demo is backed by a single table that represents its current state. That table isn’t just a persistence layer. It is also what directs all real-time behavior.

When a value in the table changes, Harper publishes an event. When a client subscribes, it listens for changes to that same table. Whether the change originates from a device, a browser, or an API call doesn’t matter—the runtime treats all updates the same.

This shifts the design focus from integrating services to modeling state transitions.

‍

Protocols Without Translation Layers

Different clients interact with the table using different protocols. Devices publish updates over MQTT. Browser-based views subscribe via Server-Sent Events or WebSockets. UI controls update state through REST.

Because Harper natively supports these protocols, there is no translation layer converting messages between systems and no secondary source of truth to reconcile. Each protocol is simply another way to read from or write to the same data model.

Interoperability emerges naturally from this design rather than being configured explicitly.

‍

Why This Simplifies Architecture

In most real-time architectures, messaging systems and databases evolve independently. Messages describe events, while databases describe state, and significant effort goes into keeping the two aligned.

In Harper, pub/sub is tied directly to data changes. The table becomes both the system of record and the event source. That removes entire classes of synchronization problems and eliminates the need for external brokers or coordination services.

The result is a system that behaves like a unified whole rather than a collection of integrated parts.

‍

Making the Model Concrete

The MQTT Getting Started repository used in the demo exists to illustrate this pattern in practice. It shows how a single table can support publishing and subscribing across MQTT, WebSockets, Server-Sent Events, and REST without additional infrastructure.

You don’t need to study the implementation details to apply the idea. The important takeaway is architectural: real-time behavior is attached to data itself, not to a specific transport or service.

‍

A Different Way to Think About Real-Time Systems

This approach changes how real-time applications are designed. Instead of planning message flows and protocol boundaries, you define shared state and let the runtime handle distribution.

That’s why the system in the video looks deceptively simple. The complexity hasn’t been hidden—it’s been removed by collapsing multiple responsibilities into a single platform.

For teams building real-time applications, that shift can make the difference between managing a stack and building on a system.

‍

Real-time systems usually accumulate infrastructure. One service handles device messaging, another manages browser connections, a third exposes APIs, and additional layers keep state consistent between them. Each component solves a specific problem, but the system only works once everything is stitched together.

The demo in this video takes a different approach. It shows what real-time pub/sub looks like when storage, messaging, and protocol handling live in the same runtime.

‍

State as the System Boundary

The LED sign in the demo is backed by a single table that represents its current state. That table isn’t just a persistence layer. It is also what directs all real-time behavior.

When a value in the table changes, Harper publishes an event. When a client subscribes, it listens for changes to that same table. Whether the change originates from a device, a browser, or an API call doesn’t matter—the runtime treats all updates the same.

This shifts the design focus from integrating services to modeling state transitions.

‍

Protocols Without Translation Layers

Different clients interact with the table using different protocols. Devices publish updates over MQTT. Browser-based views subscribe via Server-Sent Events or WebSockets. UI controls update state through REST.

Because Harper natively supports these protocols, there is no translation layer converting messages between systems and no secondary source of truth to reconcile. Each protocol is simply another way to read from or write to the same data model.

Interoperability emerges naturally from this design rather than being configured explicitly.

‍

Why This Simplifies Architecture

In most real-time architectures, messaging systems and databases evolve independently. Messages describe events, while databases describe state, and significant effort goes into keeping the two aligned.

In Harper, pub/sub is tied directly to data changes. The table becomes both the system of record and the event source. That removes entire classes of synchronization problems and eliminates the need for external brokers or coordination services.

The result is a system that behaves like a unified whole rather than a collection of integrated parts.

‍

Making the Model Concrete

The MQTT Getting Started repository used in the demo exists to illustrate this pattern in practice. It shows how a single table can support publishing and subscribing across MQTT, WebSockets, Server-Sent Events, and REST without additional infrastructure.

You don’t need to study the implementation details to apply the idea. The important takeaway is architectural: real-time behavior is attached to data itself, not to a specific transport or service.

‍

A Different Way to Think About Real-Time Systems

This approach changes how real-time applications are designed. Instead of planning message flows and protocol boundaries, you define shared state and let the runtime handle distribution.

That’s why the system in the video looks deceptively simple. The complexity hasn’t been hidden—it’s been removed by collapsing multiple responsibilities into a single platform.

For teams building real-time applications, that shift can make the difference between managing a stack and building on a system.

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.

Download

White arrow pointing right
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.

Download

White arrow pointing right
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.

Download

White arrow pointing right

Explore Recent Resources

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
Comparison
GitHub Logo

Harper vs. Standard Microservices: Performance Comparison Benchmark

A detailed performance benchmark comparing a traditional microservices architecture with Harper’s unified runtime. Using a real, fully functional e-commerce application, this report examines latency, scalability, and architectural overhead across homepage, category, and product pages, highlighting the real-world performance implications between two different styles of distributed systems.
Comparison
A detailed performance benchmark comparing a traditional microservices architecture with Harper’s unified runtime. Using a real, fully functional e-commerce application, this report examines latency, scalability, and architectural overhead across homepage, category, and product pages, highlighting the real-world performance implications between two different styles of distributed systems.
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
Comparison

Harper vs. Standard Microservices: Performance Comparison Benchmark

A detailed performance benchmark comparing a traditional microservices architecture with Harper’s unified runtime. Using a real, fully functional e-commerce application, this report examines latency, scalability, and architectural overhead across homepage, category, and product pages, highlighting the real-world performance implications between two different styles of distributed systems.
Aleks Haugom
Dec 2025
Comparison

Harper vs. Standard Microservices: Performance Comparison Benchmark

A detailed performance benchmark comparing a traditional microservices architecture with Harper’s unified runtime. Using a real, fully functional e-commerce application, this report examines latency, scalability, and architectural overhead across homepage, category, and product pages, highlighting the real-world performance implications between two different styles of distributed systems.
Aleks Haugom
Comparison

Harper vs. Standard Microservices: Performance Comparison Benchmark

A detailed performance benchmark comparing a traditional microservices architecture with Harper’s unified runtime. Using a real, fully functional e-commerce application, this report examines latency, scalability, and architectural overhead across homepage, category, and product pages, highlighting the real-world performance implications between two different styles of distributed systems.
Aleks Haugom
Tutorial
GitHub Logo

A Simpler Real-Time Messaging Architecture with MQTT, WebSockets, and SSE

Learn how to build a unified real-time backbone using Harper with MQTT, WebSockets, and Server-Sent Events. This guide shows how to broker messages, fan out real-time data, and persist events in one runtime—simplifying real-time system architecture for IoT, dashboards, and event-driven applications.
Harper Learn
Tutorial
Learn how to build a unified real-time backbone using Harper with MQTT, WebSockets, and Server-Sent Events. This guide shows how to broker messages, fan out real-time data, and persist events in one runtime—simplifying real-time system architecture for IoT, dashboards, and event-driven applications.
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

A Simpler Real-Time Messaging Architecture with MQTT, WebSockets, and SSE

Learn how to build a unified real-time backbone using Harper with MQTT, WebSockets, and Server-Sent Events. This guide shows how to broker messages, fan out real-time data, and persist events in one runtime—simplifying real-time system architecture for IoT, dashboards, and event-driven applications.
Ivan R. Judson, Ph.D.
Dec 2025
Tutorial

A Simpler Real-Time Messaging Architecture with MQTT, WebSockets, and SSE

Learn how to build a unified real-time backbone using Harper with MQTT, WebSockets, and Server-Sent Events. This guide shows how to broker messages, fan out real-time data, and persist events in one runtime—simplifying real-time system architecture for IoT, dashboards, and event-driven applications.
Ivan R. Judson, Ph.D.
Tutorial

A Simpler Real-Time Messaging Architecture with MQTT, WebSockets, and SSE

Learn how to build a unified real-time backbone using Harper with MQTT, WebSockets, and Server-Sent Events. This guide shows how to broker messages, fan out real-time data, and persist events in one runtime—simplifying real-time system architecture for IoT, dashboards, and event-driven applications.
Ivan R. Judson, Ph.D.
Podcast
GitHub Logo

Turn Browsing into Buying with Edge AI

Discover how Harper’s latest features streamline development, boost performance, and simplify integration. This technical showcase breaks down real-world workflows, powerful updates, and practical tips for building faster, smarter applications.
Select*
Podcast
Discover how Harper’s latest features streamline development, boost performance, and simplify integration. This technical showcase breaks down real-world workflows, powerful updates, and practical tips for building faster, smarter applications.
Person with short hair wearing a light blue patterned shirt, smiling widely outdoors with blurred greenery and trees in the background.
Austin Akers
Head of Developer Relations
Podcast

Turn Browsing into Buying with Edge AI

Discover how Harper’s latest features streamline development, boost performance, and simplify integration. This technical showcase breaks down real-world workflows, powerful updates, and practical tips for building faster, smarter applications.
Austin Akers
Dec 2025
Podcast

Turn Browsing into Buying with Edge AI

Discover how Harper’s latest features streamline development, boost performance, and simplify integration. This technical showcase breaks down real-world workflows, powerful updates, and practical tips for building faster, smarter applications.
Austin Akers
Podcast

Turn Browsing into Buying with Edge AI

Discover how Harper’s latest features streamline development, boost performance, and simplify integration. This technical showcase breaks down real-world workflows, powerful updates, and practical tips for building faster, smarter applications.
Austin Akers