Live data from Hacker News

Google Cloud Spanner is now half the cost of Amazon DynamoDB

cloud.google.com

111–120 of 371 posts

Re: Google Cloud Spanner is now half the cost of Amazon DynamoDB

#111

but as always: Are you sure your data doesn't fit in PostgreSQL? You should probably try PostgreSQL first.

that really should be the first heuristic for almost any systems design problem - if you can afford to buy a big enough pair of machines to fit your data in hot-swap postgres then just do that.

don't bother with mongo or mysql or dynamo or cassandra or bigtable or spanner or ... until your lack of profitability or size means you can't afford to just use postgres.

Re: Google Cloud Spanner is now half the cost of Amazon DynamoDB

#112
post #83

Earlier quoted context omitted.

> I will say that it does show a vote of confidence to say that Photos, Gmail and Ads use GCP infra, I'm not sure? I guess I'm mostly not sure what "gcp infra" means there. The blog post says "Spanner is used ubiquitously inside of Google, supporting services such as; Ads, Gmail and Photos." But there's google-internal spanner, and gcp spanner. A service using spanner at Google isn't necessarily using gcp. (No clue a…

Surely in a post about Google Cloud Spanner, all examples mentioned use Google Cloud Spanner? It would be moot listing them as examples if they would not: so my assumption is they are all using GCP infra already for Spanner. I really want to give Google the benefit of the doubt: but it doesn't help that they did not write that eg Gmail is using "Cloud Spanner." They wrote that it uses Spanner.

Considering that most of Google does not run on GCP, I would not give them the benefit of the doubt.

Re: Google Cloud Spanner is now half the cost of Amazon DynamoDB

#113
post #9

Earlier quoted context omitted.

I get the skepticism, but these core SaaS offerings tend to have a much longer support life than consumer products. Google’s Bigtable is still around as a cloud offering, and it’s almost 20 years old at this point. Spanner is used for a lot of internal Google services, too. Spanner has basically been eating all the other databases Google uses internally. Nom nom nom, every database that used to be something else is n…

Remember AppEngine?

the Google product that still exists?

Re: Google Cloud Spanner is now half the cost of Amazon DynamoDB

#114

Cool, too bad I can't rely on Google suddenly deprecating this service.

An internal version has been used within Google since ~2012 and the GCP version has been available since 2017. It's used extensively within Google. It's not going to be deprecated any time soon.

Re: Google Cloud Spanner is now half the cost of Amazon DynamoDB

#115

“ According to the Amazon Prime Day blog post, DynamoDB processes 126 million queries per second at peak. Spanner on the other hand processes 3 billion queries per second at peak, which is more than 20x higher, and has more than 12 exabytes of data under management.” This comparison seems to be not exactly fair? Amazon’s 126 million queries per second was purely for Amazon-related services serving Prime Day generatin…

> What would have perhaps been a more fair comparison is to share the peak load that Google services running on GCP generated on Spanner, and not the sum of their cloud platform. Not necessarily about volume of transactions, but this is similar to one of my pet-peeves with statements that use aggregated numbers of compute power. "Our system has great performance, dealing 5 billion requests per second" means nothing i…

Yeah I've seen some pretty sneaky candidates try that on their resumes. They aggregate the RPS for all the instances of their services even though they don't share any dependencies nor infrastructure. They're just independent instances/clusters running the same code. When I dug into those impressive numbers and asked about how they managed coordination/consensus the truth comes out.

Re: Google Cloud Spanner is now half the cost of Amazon DynamoDB

#116
post #58
post #22

Earlier quoted context omitted.

Postgres is a piece of software. Cloud Spanner/Dynamo etc are managed services. It makes no sense to directly compare one with the other.

Sure, You can compare Cloud SQL vs Cloud Spanner and RDS vs Dynamo, but it makes more sense to just say "Postgres" and assume that the reader can figure out that it means "Whatever managed postgres service you want to use". The entire point is that every cloud provider has a managed postgres offering, and there's no vendor lock-in. Though, technically, Dynamo does have a docker image you could run in other cloud prov…

I don't think it's really relevant to compare plain Postgres to Spanner, most folks have no need for something like this. It is made for folks who need to do millions of ACID type transactions a second/minute from all over the globe, and have a globally consistent database at all times.

There's a reason why Google installed and built their own atomic clocks and put them in their datacenters, it is to facilitate global timekeeping for this type of services. Most likely 99.9% of the time this type of database is overkill, and also likely way more expensive than you need.

https://cloud.google.com/spanner/docs/true-time-external-con...

Re: Google Cloud Spanner is now half the cost of Amazon DynamoDB

#117

And for many projects, Postgres is still cheaper than both. Having used both, I would much, much rather do the work to fit my project in Postgres/CockroachDB than use either Spanner or DynamoDB, which have WAY more footguns. Not to mention sudden cost spikes, vendor lock in, and god knows what else. AWS and GCP (and Azure, and Oracle cloud, and bare Kubernetes via an operator, and...) support Postgres really well. Ju…

Postgres and Spanner do different things, in different ways, with different costs, risks, and implications. You could "just use" anything that is completely different and slightly cheaper. You could use a GitHub repository and just store your records as commits, for free, that's plenty cheap and works for small projects. But not really the same thing, is it?

Re: Google Cloud Spanner is now half the cost of Amazon DynamoDB

#118

99% of the projects dont need dynamodb/spanner/ScyllaDB

DynamoDB has a free tier. I've been running a semi-active app wholly on the free tier for a good 3-4 years now. Lambda is free too.

I think the only thing I pay for is API Gateway, and that's around $2 a month max.

Re: Google Cloud Spanner is now half the cost of Amazon DynamoDB

#119
post #70

Earlier quoted context omitted.

Your mileage may vary, but I think in majority of the cases Fargate is going to be significantly more expensive than Lambda.

But at low request volumes, either is a rounding error to a medium size enterprise, and for personal projects IMO Lambda is a huge PITA.

One of lambda's ideal use cases is personal projects. Personal projects usually serve very few requests so lambda's ability to scale to zero results in cost savings.

Re: Google Cloud Spanner is now half the cost of Amazon DynamoDB

#120
post #97

“ According to the Amazon Prime Day blog post, DynamoDB processes 126 million queries per second at peak. Spanner on the other hand processes 3 billion queries per second at peak, which is more than 20x higher, and has more than 12 exabytes of data under management.” This comparison seems to be not exactly fair? Amazon’s 126 million queries per second was purely for Amazon-related services serving Prime Day generatin…

Frankly it's a bit weird to see this kind of dick measuring in a product blog post from the "Director of Engineering" :/

True and even worse, inaccurate dick measuring.
Post reply on HN