News for hackers. Stuff that matters.
Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB by ljm on Wednesday October 11, 2023 @04:10PM (#37849654)
I used DynamoDB as part of the job a few years ago and never got single-millisecond responses - it was 20ms minimum and 70+ on a cold-start, but I can accept that optimising Dynamo's various indexes is a largely opaque process. We had to add on hacks like setting the request timeout to 5ms and keeping the cluster warm by submitting a no-op query every 500ms to keep it even remotely stable. We couldn't even use DAX because the Ruby client didn't support it. At the start we only had a couple of thousand rows in the table so it would have legit been faster to scan the entire table and do the rest in memory. Postgres did it in 5ms.

If Amazon said they didn't use DAX that day I would say they were lying.

The average consumer or startup is not going to squeeze out the performance of Dynamo that AWS is claiming that they have achieved.

In fact, it might have been fairer in Ruby if they didn't hard-code the net client (Net/HTTP). I imagine performance could have been boosted by injecting an alternative.

Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB by RhodesianHunter on Wednesday October 11, 2023 @04:42PM (#37850006)
> We had to add on hacks like setting the request timeout to 5ms and keeping the cluster warm by submitting a no-op query every 500ms to keep it even remotely stable.

This sounds like you're blaming dynamo for you/your stack's inability to handle connections / connection pooling.

Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB by tedivm on Wednesday October 11, 2023 @06:20PM (#37851057)
Yeah that TLS handshake is an absolute killer if you run it for every request.
Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB by iends on Wednesday October 11, 2023 @04:19PM (#37849753)
Been using DynamoDB for years and haven’t had to do any of the hacks you talk about doing. Not using ruby though. TCP keep-alive does help with perf though (which I think you might be suggesting.)

I don’t have p99 times in front of me right this second but it’s definitely lower than 20ms for reads and likely lower for writes. (EC2 in VPC).

Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB by iot_devs on Wednesday October 11, 2023 @04:59PM (#37850178)
No need to guess when you can measure.

I am running https://cloud-canary.com a service where I monitor AWS primary services for latency and availability.

It comes with a lot of data.

For instance this is the latency I see doing operations against Dynamo.

https://cloudcanary.grafana.net/public-dashboards/c53e2092d6...

Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB by loxias on Wednesday October 11, 2023 @05:36PM (#37850559)
What a cool lil side project/company! Going to circulate this among friends...

Little bit of well meaning advice: This needs copy editing -- inconsistent use of periods, typos, grammar. Little crap that doesn't matter in the big picture, but will block some from opening their wallets. :) ("OpenTeletry", "performances", etc.)

All in all this is quite cool, and I hope you get some customers and gather more data! (a 4k object size in S3 doesn't make sense to measure, but 1MB might be interesting. Also, check out HDRHistogram, it might be relevant to your interests)

Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB by iot_devs on Wednesday October 11, 2023 @06:08PM (#37850935)
Thanks!

Any feedback is appreciated!

I pick 4k as a no-op against S3, something that very little time but still does some work.

I will definitely consider to increase it!

Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB by bennyg on Wednesday October 11, 2023 @05:06PM (#37850257)
Nice dash - if you don't mind a drive-by recommendation: I use Grafana for work a lot and it's nice to see a table legend with min, max, mean, and last metrics for these kinds of dashboards. Really makes it easy to grok without hovering over data points and guessing.
Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB by iot_devs on Wednesday October 11, 2023 @05:27PM (#37850458)
Thanks a lot!

I'll definitely update it!

Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB by RedlineTriad on Thursday October 12, 2023 @09:54AM (#37857172)
What is more important for me when using Grafana (though a summary is as well) is actually units, to know if it's second, millisecond, microsecond, and also if 0.5 is a quantile or what.

Numbers without units are dangerous in my opinion.

Re:Google Cloud Spanner is now half the cost of Amazon DynamoDB by qwertox on Wednesday October 11, 2023 @05:16PM (#37850352)
What a cool service. Congratulations!