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
asked 3 years ago353 views
2 Answers
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
EXPERT
answered 3 years ago
0

Thank you. I will explore this.

velm
answered 3 years ago

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.

Guidelines for Answering Questions