ruby-mqtt icon indicating copy to clipboard operation
ruby-mqtt copied to clipboard

Add support for client persistence

Open njh opened this issue 9 years ago • 2 comments

Types of storage for persistence:

  • in memory
  • flat file on disk
  • Redis
  • Relational Databases
    • SQLite
    • MySQL

I am not sure if it would be possible to use Memcache - I think a key quality would be to iterate through the persisted messages.

This is a pre-requisite for QoS 1 and 2.

njh avatar Sep 25 '14 20:09 njh

Without QoS, what's the goal of this issue?

Vincent14 avatar Feb 26 '19 16:02 Vincent14

Persistence would allow clients to act as if the server is there all of the time - responsibility for the message would be handed over to the MQTT library.

This means if the connection to the server dropped or the client application crashes, the library can deliver the messages when the connection is back up again.

If could also act as a buffer, if there was a lot of data/messages to send to the MQTT server.

njh avatar Feb 27 '19 21:02 njh