mblackstock / node-red-contrib-influxdb

Node-RED nodes to save and query data from an influxdb time series database
Other
64 stars 44 forks source link

Feature request: Cache data if database unavailable #136

Closed mr-manuel closed 8 months ago

mr-manuel commented 1 year ago

Would it be possible to add a caching function to not loose data during a connection or database outage?

If the database connection is not available the data gets stored on the disk and as soon as the database is available again, the data is written to the database.

There should also be a threshold for maximum cache size.

I would love it!

mblackstock commented 8 months ago

Thanks for the suggestion, but I think a general purpose data cache solution (node?) that could be used with other storage solutions might be a better solution.

mr-manuel commented 8 months ago

Do you know some?

mblackstock commented 8 months ago

Not offhand. I recall a set of safe queue nodes that may be useful. I suggest you bring up your need on slack or the forum so the wider community can help with a solution.