Skip to content

AWS Green Grass Moquette broker for inter process communication

0

Hi, Is it possible to use, Green Grass Moquette broker (pubic green grass component) for interaction over MQTT between custom components running in the same core device ? ie. Moquette broker and the custom gg components all run in the same core device.

If yes, how to properly configure it with SSL certificates?

Currently I'm using IPC pub/sub for interaction between custom components within core device, but seeing limitations, not able to "retain" messages like standard MQTT. Plus there's no "QoS" in IPC Pub/Sub - does it matter ?

Thanks,

asked 2 years ago167 views

1 Answer
0

Hello, if you wish to use the Moquette broker to communicate between components, then each component would need a certificate in order to communicate with the broker. Although this is possible, it is recommended to use local pub/sub through Greengrass IPC to communicate between components. Since IPC does not support sending retained MQTT messages, I recommend taking a look at using local shadows.

AWS

answered 2 years ago

AWS
EXPERT

reviewed 2 years ago

  • Thanks for the response, may I know why is IPC Pub/Sub preferred/recommended over Moquette broker for internal communication ?

  • Greengrass components are already authenticated, and hence can use IPC without any SSL certificate stuff. QoS isn't needed because IPC messages between components don't leave the device. It's not wrong to use an MQTT broker though, it's just more work. You can use the client devices feature to authenticate the MQTT clients. It's even possible to deploy an MQTT broker without TLS.

  • @Greg_B Thanks for the explanation, also from performance stand point, is IPC better than Moquette - are there any bench mark stats to show it?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.