[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paho-dev] Using Redis with the Paho MQTT Rust Language Library
- From: Frank Pagliughi <fpagliughi@xxxxxxxxxxxxxx>
- Date: Tue, 2 Jan 2018 10:34:59 -0500
- Delivered-to: firstname.lastname@example.org
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=dk12062016; d=mindspring.com; b=q5PG5f/MNi9qsf3djkvRsDQ/ccakX7INIaanIW7ozT7FuvNe2duMLU6C3dvxMSVrTYB0eiyDIWdgJ9dOnWmxU0UofyhhtB0Os1WFSL86FU1bswu/QT/JpbDJNZbLlVIZfxnQZe4SvyRc1iaKyw+zztNn1CaRIquzFG24MF8h+8QBXY5WOXMHXoeJakOVEawaNbyPs36ufnArvPUCSYk7b/71dZ2W1Xg43KILDny99yy6pL3wux4vc43xMY746KJjr9tROvCO8/Vz2rCV5dSZHEzv1Voxr2zSj/LklswcMkISjCvu5rRVl3sciOKpeu7HxOovaoIPrqd/UXTeZ+Fcuw==; h=Received:Subject:To:References:From:Message-ID:Date:User-Agent:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:Content-Language:X-ELNK-Trace:X-Originating-IP;
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
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
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:
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.