Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] Using Redis with the Paho MQTT Rust Language Library

Hello All,

I made a small side project showing how to use Redis as a message persistence store with the emerging Rust Paho Client:

I often like to pair Redis with MQTT on embedded Linux systems. It's great at caching time-series data, and can help to significantly reduce Flash thrashing on smaller devices. It can store message data in a stable secondary process without having to write everything to the flash device.

Using the existing Rust Redis crate, and MQTT persistence store takes ~50 lines of code.


On 12/20/2017 08:32 AM, Frank Pagliughi wrote:
Hello All,

The Paho Rust Language library is now just about functionally complete. With the addition of user-defined persistence this week, the Rust library now has full coverage of the capabilities of the underlying Paho C library for MQTT 3.x. It's still fairly messy, lacks full error detection, and has an evolving API, but it is quickly progressing towards a release candidate. I'm still on track to have an initial release by February - and then on to MQTT v5 by June.

I continue to be intrigued by the Rust language. The compiler complains, moans, and nags you into writing better low-level code. It simply doesn't allow you to get away with some of the sloppy code that you get from C/C++.

It's like having Grandma doing your code reviews.


Back to the top