Ask HN: How do you handle time-series metrics at scale without a large bill?
4 pointsI want to build my own first party analytics for fun and profit and I'm trying to find a good timeseries database that has a sweet spot between costs, overhead, and scalability.
I've considered just standard PostgreSQL, SQLite on the edge (Cloudflare D1 / Turso), purpose built columnar databases (Clickhouse, DuckDB) and the ones managed by big cloud like Google BigQuery, Amazon Timestream, and Cloudflare Analytics Engine.
For those running event analytics on indie / small-team budgets: what has your actual production experience been? Trying to make an informed decision.
Comments (3) 4 threads
for the live stuff (visitors right now etc) i just keep counters in memory and flush every few seconds
we had similar concerns and issues and that's why started building an in memory db with time series support built in, mostly for that live part. happy to share if your intrested in giving it a try. I know this is in-memory, different from the disk based traditional systems you would be looking for, but if it would cost less and perform better for your use case then it be a good shot
After eventhub we’re using ducklake. But I’m not at the point where I’d flat out advise it to other people (just code immaturity that tk their credit is being worked on)
Also, if you’re evaluating postgres, check out timescaledb.
All comments shown.
Couldn't load more comments. Check your connection and try again.