Raspberry to MongoDB

0

I am new to AWS and looking to move from inhouse to cloud. I have data stream coming from raspberry pi and data need to be processed from MongoDB by the application. So in cloud I need to find a way to move the stream of data from raspberry to Mongo. I was reading through various options like Greengrass, IoT Core, Kinesis Data stream, Kinesis Firehose etc., However could not find a right material which can direct me the proper and reliable flow. Can someone with prior experience of Raspberry PI to MongoDB can provide their thoughts on the right solution? Which is better to transfer the stream of data from raspberry to DB.

velm
已提問 3 年前檢視次數 360 次
2 個答案
0

Hi,
You have many many different options, so since you posted in the Greengrass forum I'll share a solution based on Greengrass. Greengrass has a component call Stream Manager (learn more at https://docs.aws.amazon.com/greengrass/v1/developerguide/stream-manager.html) which can be used to take in large amounts of data and upload it to the AWS cloud reliably. The documentation that I just linked is for Greengrass version 1, but Stream Manager is also available for Greengrass version 2 with the same features. You should use version 2 if you are just getting started with Greengrass.

Greengrass will run code which you write locally. Your code will then able to collect data and import it into Stream Manager. Once it is in Stream Manager you have several options, but one with quite a lot of flexibility would be to upload to Kinesis. Once your data is in the cloud in Kinesis, you can then use a AWS Lambda function to read the data from the stream and convert it as needed and write it into your Mongo database.

Hope that helps you with at least one possible solution.

Cheers,
Michael Dombrowski

AWS
專家
已回答 3 年前
0

Thank you. I will explore this.

velm
已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南