aws/aws-iot-device-sdk-python-v2

persistence interface

HAK-CODE opened this issue · 2 comments

Describe the feature

Can we provide a way to write unprocessed messages (not able to be sent to MQTT broker due to network reasons) to a file or permanent storage? As if we use SBC(single board computer) to keep those messages in RAM it may overflow.

Use Case

We have an RPie installed at different sites which sends us data via AWS IoT Core, sometimes network failures occur for which a team is sent to fix at the remote area which takes around 10 - 15 days sometimes memory crashes for which historical data is wiped off and sometimes device power failure occurs for which all data is lost during network outage at a site.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

SDK version used

v1.11.3

Environment details (OS name and version, etc.)

Debian version: 11 (bullseye)

A persistence interface is something we're currently thinking about, but I can't make any promises or timelines.

The newly released Disk Spooler component should address this:
https://docs.aws.amazon.com/greengrass/v2/developerguide/disk-spooler-component.html