200 points · by bithavoc · 6y ago · 65 comments
One often has a small number of tables, often a single table, with a high write workload. Changing it to a timescale hypertable, provided you can work with the additional restrictions that has, can let you instantly 10X your write throughput (or more with multi-node timescale.) That's a lot cheaper than trying to scale your database write IO by 10x.
I like multi-cloud services like this because it reduces the vendor lock-in that happens with these public clouds.
One database platform for all their data, one (great) support team to speak with, etc.
And thanks for the compliment!
Timescale has some neat features for handling time series data, but for just sharding out data for scalability I can't see it offering anything substantial. And in that vein, I feel the marketing is somewhat disingenuous in the performance claims. When comparing to vanilla PostgreSQL it is comparing against a very naive usage pattern. People have been getting the same kinds of performance increases from partitioning out time series data for a loooong time.
https://www.timescale.com/careers/4128985002-cloud-engineer
Timescale is a remote-first company with amazing folks all over the world.
We're also actively looking for technical support engineers with strong Postgres backgrounds: https://www.timescale.com/careers/4615287002-technical-suppo...
Just using Timescale instead of RDS or Cloud SQL PostgreSQL would be a virtual assumption, but with the starting price points so much higher it makes the decision to START with Timescale a lot harder.
If you do want a lower priced option, we actually recently also released a second managed cloud offering in public preview, Timescale Forge: https://timescale.com/forge.
Timescale Cloud provides great flexibility with multi-cloud and 75+ regions, security conscious options like VPC peering and SOC2/ISO/HIPAA compliance, and a more traditional DBaaS Experience.
Timescale Forge is a innovative platform with capabilities like decoupled compute and storage (so you can select yourself the exact configuration you want, starting at $49/month), instant pause/resume, native support for our Prometheus integration, and more coming...
Timescale Forge, which I mentioned elsewhere, is based all around Kubernetes (including StatefulSets), which enables its decoupled compute/storage and instant pause/resume.
For that we employ helm charts, but also have additionally built k8s operators + more internally to handle the dynamic operation and reconfiguration you want from an "full lifecycle"-managed database service, while the helm charts are slightly more static.
What does that mean? The pricing calculator on https://www.timescale.com/cloud still has the same predefined storage configurations.
Also, you might want to remove this customer opinion from the post, standard Postgres won't break a sweat at 100M rows:
> We have over 100 million rows of data in development and production, and we needed a database that could handle this volume
That's also true for multi-cloud migration, you just select that you want to migrate from a 100GB instance on AWS to a 200GB instance on GCP, and the migration happens behind the scenes.
(Technically, it does so by spinning up a replica of the new configuration / location, and continuously migrates the database, including any online changes happening concurrently. Then, at the last minute, it "swaps" over control from the primary to replica, and then retires the old primary. This is all hidden behind DNS too.)
Yeah, you could absolutely stick this in a vanilla postgres instance, but as a sibling post said, you wouldn't get the same performance on the queries we care most about.
Besides this: congrats on the launch. I tried your product a while ago and was impressed. Big cloud providers are the obvious perfect channel for you. Just get ready for some nasty competition from the same guys :)
Re: Cloud providers - I also agree, it's a complicated world ;)
I would also suggest looking at Citus for scaling Postgresql. With the Azure reserved discounts, Citus is like less than half the price of Timescaledb. Citus also helps tremendously with multi-tenant scenarios.
Of course, depends on what you are trying to do.
Timescale also has a multi node version now that distributes your data across a cluster sort of like Citus.
Citus is just scale-out Postgres. TimescaleDB is Postgres for time-series.
There are a long list of capabilities that we've built for time-series that Citus does not have: native 15x compression, data retention policies, continuous aggregates (real-time materialized views refreshed automatically), interpolation, etc.
Nothing against Citus (we are friends with that team) - but they are designed to solve a different problem than we are.
EDIT: Looks like the documentation recommends using Sequelize ORM.
As aside, you mention enjoy this developer Q&A that a community member published a few days ago that talk about his experience using TimescaleDB to build a crypto trading bot.
https://blog.timescale.com/blog/how-i-power-a-successful-cry...
Also, an earlier tutorial:
https://blog.timescale.com/blog/analyzing-bitcoin-ethereum-a...
I'm mike there - come say hi.
1. All plans (including the lowest-cost dev tier) includes PITR recovery out of the box. You can also "fork" any current database to a second instance (e.g., for dev & test), also at any recent point-in-time.
2. Once you create any instance, you can later create a "read replica" with one click, which creates an asynchronous replica of your primary (e.g., for ad-hoc queries to not interfere with the primary, or to just load-balance reads).
3. On the HA side, our "pro" plans includes automatic synchronous replication between primary/replica, so that any primary crashes failover without downtime to the replica. You also get DNS-named endpoints for replicas, again for load balancing reads.
I don't know what VM SKUs you use on Azure, but at a glance it looks like your solution would cost 300-400% the cost of the VM, just for your Basic tier.
As a fan of TimescaleDB, I really want to like this, but I'm just not seeing enough value-add for the price. Maybe I'm missing something, please sell me on the benefits over managing VMs myself?
Because $75 or $150 for HA on oracle is not going to happen - period.
It's just interesting how the price points are so wildly divergent.
Using the price calculator linked in the article, on Azure the cheapest "Dev" tier (which I obviously wouldn't expect to have HA based on the name "Dev" alone) is $160/m - that's a lot for 1 vCPU and 4GB RAM. I want to give TimescaleDB money, but I just can't justify that.
The cheapest in the Basic tier on Azure is $715/m - yes, you can bet I expect HA at that price for 4 vCPUs and 16GB RAM.
I'm a big fan of TimescaleDB, but if they are competing with cloud provider's own managed solutions (which, AFAIK, all come with HA and PITR), it needs to ship with similar guarantees, and/or the pricing needs to be revised.
I don't know Azure but do know AWS. PITR restores are not in seconds but in hours and you lose data.
"... a user-initiated point-in-time-restore operation will be required. This operation can take several hours to complete, and any data updates that occurred after the latest restorable time (typically within the last five minutes) will not be available."
Failover with AWS is generally 1-4 minutes? Someone fill in the blanks here?
* The smallest multi-AZ with failover MSSQL you can get runs $1,503 on AWS.
* Undifferentiated Postgresql is pretty cheap - you should be able to get failover for about $110 or so there.
I'm just pointing out that commercial / differentiated product offerings (which is what this is), beyond just basic postgresql costing so LITTLE for HA would actually be somewhat unusual.
In enterprise sales these prices for HA are so low no one would even know how to contract for them. What happens is once you need this level of uptime you can afford it (in most cases).
Quick feedback my side - $150/month to try something and then $500/month in production is not unreasonable for I think a fair number of use cases. Making the "try it" pricing as cheap as possible, and feature limiting is a good thing I think so the onboarding step is easier.
Folks with money to spend are used to sometimes TERRIBLE support despite spending big money on big players. One thing these smaller places have, if you are giving them $10K/month - they usually answer the phone or email! A secret benefit.
Azure Postgres and AWS RDS do _not_ include HA replication in their base price -- you need to pay extra for actual replicas. What they do provide is the fact that they use decoupled storage to automatically recreate the database in the case of failure (which we do as well).
But that's not the same thing as ~zero downtime from migrating to a synchronous replica, which you can also use for scaling read queries.
p.s.: could Postgres change its license to make Timescale share their revenue? :D
With Amazon, they were able to make their own Linux flavor so they could pay Red Hat less. I think if Linux itself sold enterprise licenses, we'd end up with a much more fragmented or corporate batch of OSes taking its place, and I think that's very negative for the ecosystem in general. No one wants to deal with that :/
I'm surprised people want to deal with MongoDB at this point.