- Newest
- Most votes
- Most comments
There is an MQTT spooler, but it's presently an in-memory spooler.
https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-nucleus-component.html
spooler (Optional) The MQTT spooler configuration for the Greengrass core device. This object contains the following information:
maxSizeInBytes (Optional) The maximum size of the cache where the core device stores unprocessed MQTT messages in memory. If the cache is full, the core device discards the oldest messages to add new messages.
Default: 2621440 (2.5 MB)
keepQos0WhenOffline (Optional) You can spool MQTT QoS 0 messages that the core device receives while its offline. If you set this option to true, the core device spools QoS 0 messages that it can't send while it's offline. If you set this option to false, the core device discards these messages. The core device always spools QoS 1 messages unless the spool is full.
Default: false
You can see some discussion about a persistent spooler here: https://github.com/aws-greengrass/aws-greengrass-nucleus/issues/825
Relevant content
- asked 2 months ago
- asked 4 years ago
- Accepted Answerasked 2 months ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 3 months ago
I'm a bit confused about the description, is this related to messages to IoT-Core ?
Hi, yes the spooler is for sending messages to IoT Core via Greengrass, you can use the Greengrass IPC SDK to take advantage of it https://docs.aws.amazon.com/greengrass/v2/developerguide/ipc-iot-core-mqtt.html
AWS IoT Greengrass v2 now has a Disk Spooler component that provides persistent storage: https://docs.aws.amazon.com/greengrass/v2/developerguide/disk-spooler-component.html