Queue or something similar on filesystem


I have a ReaderProcess, which reads data from some sensors and a WriterProcess, which sends the data which was read by the ReaderProcess to a SQL Database.

The WriterProcess establish the connection to the SQL Database. In case of failure, no data could be written and the ReaderProcess just writes into the queue (until a limit is reached).

In case of a losing the power supply, I want to store the queue on the filesystem to prevent data loss.

Is there a way to implement that with legato framework? Or could somebody recommend a library for that use case?


Hi white_fish,
You can try with legato’s config tree services for your requirement. It is a non-volatile database that stores configuration values for apps.
You can find more details about config tree in the below links:


Muralidhara N