Deploy web app to aws greengrass Iot

0

I am going to deploy a image classification react web app to aws Iot greengrass. I would like to perform a two step operation using different version of mobilenet. The first operation, which is already in the web app, will be placed on edge and the second operation, which receives result from the web app then further operate and return the final result to the web app, will be place on the cloud. Here is the questions.

  1. How to achieve this design?
  2. Should I place the greengrass Iot core to the server where my web app located?
  3. Do I need to use device SDK on the cloud or on edge?
  4. To connect to the cloud, should I place the second step to the s3 bucket in order to configure it as a greengrass component?
  5. How to connect the web app to greengrass?
  6. How do I perform the communication between the two operation? Should I use MQTT?
  7. What is the difference between aws greengrass core device on the left and aws Iot core on the right?Enter image description here Thank you for taking the time to read this.
已提问 1 年前318 查看次数
1 回答
1

Assuming that the app in the greengrass will be developed using a custom component [1]. You have two ways to handle your scenario

  1. Publish/subscribe local messages [2]
  2. Publish/subscribe AWS IoT Core MQTT messages [3]

The AWS IoT Core MQTT messaging IPC service lets you send and receive MQTT messages to and from AWS IoT Core. Components can publish messages to AWS IoT Core and subscribe to topics to act on MQTT messages from other sources.

References

  1. https://docs.aws.amazon.com/greengrass/v2/developerguide/develop-greengrass-components.html
  2. https://docs.aws.amazon.com/greengrass/v2/developerguide/ipc-publish-subscribe.html
  3. https://docs.aws.amazon.com/greengrass/v2/developerguide/ipc-iot-core-mqtt.html
profile pictureAWS
专家
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则