내용으로 건너뛰기

guaranteed delivery of events with intermittently offline Device

0

I have a GreenGrass device that can be intermittently offline, and I would like to inform the server of important events that happen.

Is there a message queuing system I can use within GreenGrass where I publish the event locally and whenever the Device is re-connected it will deliver this message.

Can I use IoT-Core for this ? Will it allow me to publish multiple messages to a topic and will they all get cached until delivery, and they arrive in the same order that they were sent with ?

Does it have a 'save to disk' option so it will retain the messages for delivery even in-between reboots ?

질문됨 4년 전1천회 조회
1개 답변
0
수락된 답변

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

AWS
전문가
답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠