AWS 时间流数据库 - AWS IOT

AWS Timestream DB - AWS IOT

我正在构建一个简单的传感器,它向 AWS IoT Core 发送 5 个遥测数据。我对 AWS Timestream DB 和 Elastic Search 之间的遥测数据存储感到困惑。

  1. 目前我正在试用 Timestream,想知道这是正确的选择吗?任何专家建议。
  2. 其次,我想永远存储数据库记录,因为这将输入我的机器 学习预测未来。 Timestream过段时间删除记录还是永远不删除
  3. 我将创建一个自定义网页来显示每个租户的遥测数据 - 任何有关如何执行此操作的帮助。我应该直接通过 api 查询时间流数据库还是应该在另一个数据库中备份它,比如动态等?

非常感谢您的帮助。谢谢。

For now I am experimenting with Timestream and wanted to know is this the right choice? Any expert suggestions.

我不会称自己为专家,但 Timestream DB 看起来像是遥测数据的可靠解决方案。我认为,如果您的每个遥测数据都是某个数值,ElasticSearch 就太过分了。如果您的遥测数据更复杂(例如 JSON 具有许多键的对象)或者您将受益于全文搜索,ElasticSearch 将是更好的选择。 Timestream DB 可能也更容易管理,成本更低。

Secondly I want to store the db records for ever as this will feed into my machine learning predictions in the future. Timestream deletes records after a while or is it possible to never delete it

保留似乎仅限于 4 weeks 200 Years per default。您可能可以通过联系 AWS 支持来增加它。但我怀疑他们是否会允许无限保留。

我们使用Amazon Kinesis Data Firehose with AWS Glue to store our sensor data on AWS S3. When we need to access the data for analysis, we use AWS Athena查询S3上的数据。

I will be creating a custom web page to show this telemetries per tenant - any help with how I can do this. Should I directly query the timestream db over api or should i back it up in another db like dynamic etc ?

这取决于您要显示的查询的动态性和复杂性。我将从直接查询 Timestream 开始,并在优化成本的地方引入 DynamoDB。

根据您的方法“将 5 个遥测数据发送到 AWS IoT Core 的简单传感器”,Timestream 是可行的方法,对于简单的遥测数据来说是相当简单和便宜的解决方案。

磁存储超出您的需要(200 年)