Hi everyone,
I’m currently deciding on a high performance database for running analytics queries with time filter and SQL queries. We are considering AWS TimeStream, TimeScale db, Simple Store and ClickHouse. We are trying to figure out which one will be long term optimal for scaling from 10 tps to 10000 tps within a short time without considerably increasing latency on common queries. Have you used TimeStream? What has your experience been like? Anything you would do instead with hindsight?
I have not used timestream but last time I checked the pricing and the reviews were not great.
We run very heavy analytical workloads and have tried timescaledb clickhouse, postgres rds and others.
Clickhouse is quite fast but needs a lot of maintenance. We used timescaledb a lot because the time_bucket queries are nice but found it quite slow at 100m rows plus and really hard to maintain (backups etc). Also timescaledb seemed to deliver pretty crap performance per cpu core.
At the moment we use a combination of postgres rds, s3 and dynamodb. One of our key requirements is VERY heavy burst reads which s3 and dynamodb accomodate but the downside is limited query. You can still easily encode at least 2 “sort” columns in s3 or ddb so depends if you need to query on many different columns. When it comes to timestamp ranges thats not hard but lots of where clauses will be impossible.
Finally I come to the real workhorse of our analytical workloads: postgres 14 RDS. Absolute beast in terms of performance and features. If you give the rds
a 1tb+ gp2 drive you will get insane disk performance for a pretty cheap price due to the way it scales. For timeseries datasets you can use pg_partman to speed things up if required. Do not use aurora for analytical workloads the pricing is a scam. The horizontal and vertical scale options for vanilla postgres rds can take you a very long way although there are cases where we have to use dynamodb (extreme bursty throughput reads).
We considered timestream but ended up just doing dynamodb with unix timestamps stored as number type for the sort key. Our main use-case is typically displaying something like last x days or weeks, and it’s worked well so far. Dynamo seemed less complicated and a heck of a lot cheaper.
Also have a look into pinot and druid to see if they fit your use case.
If you focus on performance ClickHouse number 1 but you need people to maintain that, Timestream it is not a real time, you can end up by sending data and see that in DB several hours later,
Look at InfluxDb it something between
I haven’t used time stream.
If it’s of interest, we’re exploring options with Dynamo, Kinesis, S3 and Athena that seem to be working in theory. We’ve not tested it at large scale yet and the latency can be varied.
I think GP3 is available now and gives better out of the box performance on iops and throughout without needing to provision a TB of storage if you don’t need that much.
Nah its performance per dollar is worse unless you have some tiny drive
What do you consider “tps” in this context?
The first question to ask is what kind of analytics queries will you be making. Then you need to figure out what kind of access patterns these queries will imply. From this you can see if you need a column or row oriented db. Also you need to know the time scales and db volumes involved to inform the need for the data storage and access latency you need.
Equipped with this information you can evaluate a vendor solution or open source tech.
Requirements range are suspect. Taking a leap, I am wondering if you are a pre-pmf startup. If so, you are choosing based on the wrong requirements and should pick whatever you can stand up the fastest… which is probably rds/Postgres or maybe timescale
TimeStream felt limiting to us once we started pushing past a few thousand TPS, the pricing model also gets weird at scale.
ClickHouse is the right call for this workload, we run it via Tinybird which handles all the infra so you’re not babysitting servers while scaling from 10 to 10k TPS. Query latency stayed flat for us even as volume grew.