Storing data coming via MQTT in a database to display it as a chart

0

Hi all, I'm collecting the data from sensors and sending them to AWS via MQTT. I can observe my data coming on MQTT test client in AWS IoT. Now, I would like to store the data in a database and later - to make a chart of it. I routed the data to DynamoDB, but I'm not certain about it, because the whole MQTT (JSON) message is stored in one column and I have no clue if it's even possible to make a chart out of it. Basically, my question is: am I on correct path? Is DynamoDB my friend in this case, or should I use other db/storage? Should I go and parse the MQTT/JSON message before storing? What tool should I use to build a basic chart out of my data?

Sorry for the amount of questions, but I'n very new to AWS and to clouds in general. Your help will be appreciated!

Thank you, Joanna

2 個答案
1

Hi Kohrinn,

which database to use depends on your use-case. AWS provides a bunch of relational and NoSQL databases. If you want to use DynamoDB and store ever key in its own "column", please take a look at the DynamoDBv2 rules action. We do have also a blog about storing and visualizing IoT data with DynamoDB.

Cheers,
Philipp

AWS
專家
已回答 10 個月前
0

Hi Kohrinn. I agree with Philipp's answer. I also recommend this blog for some good patterns: https://aws.amazon.com/blogs/iot/7-patterns-for-iot-data-ingestion-and-visualization-how-to-decide-what-works-best-for-your-use-case/. However, I would say there's more than just these 7 patterns.

Pattern 4 is perhaps one of the simplest patterns for producing visualizations of time series data. One of the simplest, not necessarily the best, or cheapest, or recommended for your use case. This short video may help you achieve that pattern: https://www.youtube.com/watch?v=z8T4hAERuOg .

profile pictureAWS
專家
Greg_B
已回答 10 個月前

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

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

回答問題指南