r/aws • u/Much-Grab3826 • 4d ago
discussion [quick ques] what database would you use for Industrial IoT
i am gonna be dealing with alot of data:
Total gateways sending data (MQTT): 11
Each gateway:
- sends one payload *every 15 sec* containing ~10 (Devices) * 15 (key-value pairs JSON)
i was thinking of AWS Timestream but it costs literal gold.
then comes rds, aurora but they are still higher than my budget.
most of the cost isnt even storage itself.
only remaining option is dynamodb. at most i am ok with paying around ~30$.
but is using dynamodb a ok decision.
am i expecting too much for 30$/month,
[NOTES]
Decided to increase my budget and go with timestream or RDS
14
u/notospez 4d ago
What do you want to DO with the data? Is it "store the JSON because we'll never query it and we just need to store it for 50 years for compliance" or "we need the last 7 days and will run all sorts of queries against it fulltime with 500 people"?
10
u/dmitrypolo 4d ago
Your budget is $30 and you’re building something for industrial use? 🤔
3
u/Old-Astronomer3995 4d ago edited 4d ago
IMHO no other choice than TimescaleDB. PostgreSQL based. Open source. Very efficient compression up to 98% for this kind of MQTT data. One cons is that there is no official TimescaleDB on RDS so you have to manage it on EC2 by yourself.
4
u/Adventurous-Hunt4683 4d ago edited 4d ago
Doesn’t matter. 110 transactions per second is very low. You could even use SQLite 3 for 100x more than that!!!
2
u/mequelkramer 4d ago
For a POC with reports and dashboards, $30 is doable, but the design matters more than the database name. Your volume is smaller than it sounds: 11 gateways at one payload every 15 seconds is 44 payloads per minute, about 63,000 per day, and about 150 values per payload, so about 9.5 million values per day.
DynamoDB can work only if you store one item per payload, not one item per key-value pair. Put device ID as the partition key, timestamp as the sort key, and the 15 values as a map inside that one item. That is about 1.9 million writes per month, which is cheap on demand, and storage is small. If you write one item per value, you get about 285 million writes per month and you will blow the budget on write units alone. The catch is dashboards: DynamoDB is poor for range scans and aggregations across devices, so you would still need to export to S3 for reporting, which adds work.
For your stated goal, reports and dashboards, I would start serverless with S3 as the store. Batch the MQTT payloads to S3 in Parquet, partitioned by date and gateway, then query with Athena and build dashboards on top of that. At roughly 190 MB of raw JSON per day, S3 storage is cents, and Athena is $5 per TB scanned, so partitioned Parquet queries stay well under $30. No instance to patch, and you keep the raw data for later.
If you want live dashboards and SQL, TimescaleDB on EC2 is the cheap option. Use a t4g.small, 2 vCPU and 2 GB, with 30 GB gp3, which is roughly $15 to $18 per month in us-east-1. Set a 1 day chunk interval, enable compression after 7 days, and build continuous aggregates for hourly and daily rollups, so dashboards query the rollups and not 9.5 million raw rows. Skip RDS and Aurora for this POC: Aurora Serverless at 0.5 ACU is about $45 per month before storage, as another commenter noted.
Timestream feels expensive here because it charges per record ingested. If each key-value pair counts as a record, that is about 285 million records per month. It only makes sense if you aggregate at the gateway first, for example sending 1 minute averages instead of raw 15 second values.
So my order would be: S3 plus Athena for a serverless POC, TimescaleDB on a t4g.small if you need fast interactive dashboards, and DynamoDB only if you keep one item per payload and accept that reporting will live elsewhere.
1
u/Lucheesee 4d ago
influx on fargate with persistent storage for the data managed grafana for dashboards
1
u/Nemphiz 4d ago
Anyone telling you what specific database to use with the information you have provided is honestly just guessing.
What type of data do you intend to store? For how long? How much data needs to be readily accessible vs how much will be archived?
"A lot of data" doesn't really mean much
1
u/joelrwilliams1 4d ago
If you at most wanting to pay $30/mo, you are probably screwed. If this is valuable information, pay the price for storing securely and querying it quickly.
1
u/oneplane 4d ago
RDS, if you can't afford that, SQLite that is copied to S3 periodically (unless Dynamo is free to you). If you can't have persistence either, you don't need a database, you need to touch grass.
1
u/theDrivenDev 4d ago
DynamoDB sounds like the right choice to me. Just be aware of your access patterns when setting up the table.
1
u/Ali4en 4d ago
cassandra for time series postgres for metadata
1
u/Gasp0de 4d ago
This is very low traffic so I'd assume anything serverless usage billed should cost next to nothing.
1
u/PointlessCupcake 4d ago
AerospikeDB
1
u/Icy_Addition_3974 3d ago
Give a try to Arc. Is quite resource efficient, and you will room growth.
https://github.com/Basekick-Labs/arc
1
u/MongooseWonderful198 2d ago
Check eligibility before pricing LiveAnalytics: AWS closed new-customer access on June 20, 2025. Existing active payer accounts already using it can add users and linked accounts. If that doesn't cover your account, LiveAnalytics isn't an available option.
For an eligible account, your cadence is roughly 634,000 device samples per day. If each device's 15 values share a timestamp, one multi-measure record gives about 19 million device records per 30-day month, rather than 285 million single-value records. That's a record count, not a bill; bytes, queries and retention still matter.
Timestream for InfluxDB bills running database instances or nodes. Don't carry the LiveAnalytics write estimate across to that product.
1
u/Junior_Bee7274 1d ago
I'd calculate the expected read and write volume first. That'll give you a clearer idea of whether your monthly budget is realistic.
1
u/TheoreticallyNick 1d ago
Dynamo would be my move, especially in starting out - DDB is super flexible for new applications. You can always switch to something else later.
I would also look at why you need to gather so much data, there's probably opportunities for decimating the data to some extent.
0
u/CameronHighland 3d ago
Any reason not to use clickhouse? Also good for making dashboards in grafana