Optimize MQTT performance with DIffusion®

Matias Prados - January 4, 2021

MQTT is a publish-subscribe messaging protocol commonly used to connect Internet of Things (IoT) applications. A wide range of IoT devices can now connect directly to Diffusion, send and receive data, interact with other Diffusion clients, and benefit from Diffusion’s event data processing features and rich security framework. MQTT can also be used as a lightweight alternative to the Diffusion SDK for simple publish-subscribe use cases.


Diffusion Real-Time Event Stream integration with MQTT

Introduction to Diffusion Real-Time Event Stream through a simple application using Diffusion and MQTT.js.  In this tutorial we will create an MQTT client to publish Star Wars dialogs in real-time and consume them through MQTT subscriber as well as Diffusion subscriber.  The goal is to show how easy it is to consume real-time data from MQTT into Diffusion with no-code required as well as how much efficiency you can add to your solution by using Diffusion. Reduce latency and bandwidth and increase throughput with our Delta Data Technology

The Code Example

In this example, you will have the abillity to connect either to MQTT server or Diffusion’s through its MQTT Connector. Consume messages produced by the Producer app, show them in the console and have fun while learning.

See how quickly Diffusion consumes MQTT event data and displays its values compare with a pure MQTT solution. Learn how much data you can save when using our Delta Data Technology and how fast your consumers will get that data.

Download the Code Example from GitHub

We are currently working on javascript implementation of the described use case, using MQTT.js  and Diffusion.

Start getting familiar with Diffusion by signing up to our free Cloud solution or download our on-premise version and run it in your local environment.
Our open source code examples is available at https://github.com/diffusion-playground/starwars-mqtt

Also check out additional resources at the footer of this blog!


The Diffusion® Intelligent Event-Data Platform makes it easy to consume, enrich and deliver event-data in real-time across all network conditions. Push Technology pioneered and is the sole provider of real-time delta data streaming™ technology that powers mission-critical business applications worldwide. Leading brands use Push Technology to bring innovative products to market faster by reducing the software development efforts using the low-code features. The Diffusion® Intelligent Event-Data Platform is available on-premise, in-the-cloud, or in a hybrid configuration. Learn how Push Technology can reduce infrastructure costs, and increase speed, efficiency, and reliability, of your web, mobile, and IoT application.

Learn More: View Blog Posts and Developer Resources


Check out these other resources


Diffusion Now Supports MQTT

Support for the OASIS MQTT open standard protocol is the main feature added to Diffusion 6.6 Preview 2, the latest release of the Diffusion® Intelligent Event Data Platform. MQTT is a publish-subscribe messaging protocol commonly…

Case Study

Data-Efficient IoT

Traditional solutions that handle and distribute data, are designed upon the assumption that networks and environments in which they operate have sufficient bandwidth, low latency, short network interruptions, low traffic volume, and primarily back-end systems. These assumptions no longer apply. In today’s world.


MQTT Support

Diffusion™ supports MQTT clients connecting to the Diffusion server to send and receive topic data, with no Diffusion code required on the client.