News for hackers. Stuff that matters.
Re:How does database sharding work? by dagss on Friday April 07, 2023 @03:29AM (#35479092)
Would love to be able to use Spanner..

What do you suggest one does if one has to run on Azure though?

PS Azure Cosmos is not a real product, it is a beta toy that Microsoft just has made expensive enough that people think it cannot possibly be as bad as it is..

Re:How does database sharding work? by avinassh on Friday April 07, 2023 @04:37AM (#35479563)
> PS Azure Cosmos is not a real product, it is a beta toy that Microsoft just has made expensive enough that people think it cannot possibly be as bad as it is..

what kind of problems you ran into with Cosmos?

Re:How does database sharding work? by cj on Friday April 07, 2023 @08:32AM (#35480921)
It’s supposed to be MongoDB compatible (if I’m not mistaken).

Last I checked, that “compatibility” run at least a couple major version behind the real MongoDB.

To be fair, the same is probably also true with AWS’s DocumentDB

Re:How does database sharding work? by davidjfelix on Friday April 07, 2023 @10:27AM (#35481912)
I think that AWS DocumentDB uses the last mongodb version that wasn't their new(ish) SSPL license and any compatibility beyond that was "clean room" backported. Its possible Azure is in a similar place.
Re:How does database sharding work? by CSDude on Saturday April 08, 2023 @05:12AM (#35491772)
DocumentDB is a thin layer that converts the mongo commands to Postgres, uses Aurora Postgres. If you check, the constraints are exactly same. Even list RDS CLI returns the DocumentDB clusters.

Most obvious indicator is DocumentDB is single node write whereas Mongo is really not, coming from Aurora Postgres.

Re:How does database sharding work? by yawgmoth on Friday April 07, 2023 @05:46AM (#35479897)
Recently joined an Azure shop so new to Cosmos, but it's fairly abstract as a product. It seems to be a front for different database types like Mongo or Postgres or SQL Server with some additional features such as subscriptions.

Would be interested to hear your challenges.

Re:How does database sharding work? by vinay_ys on Friday April 07, 2023 @07:02AM (#35480332)
You could consider one of these three –

1. yugabytedb (postgres compatible)

2. cockroachdb (postgres compatible)

3. tidb (mysql compatible)

You could self-host these on azure or subscribe to each of their managed service offering.

Of course, sticker price for managed will be more expensive than self-hosted enterprise product which itself will be more expensive than the self-hosted, community-supported, open-source option (which seems to be a real option with YugabyteDB).

Re:How does database sharding work? by sgtfrankieboy on Friday April 07, 2023 @07:34AM (#35480534)
It's also a real option with CockroachDB, unless you need regional sharding. Which a lot don't actually need anyways.
Re:How does database sharding work? by rad_gruchalski on Saturday April 08, 2023 @07:40AM (#35492354)
YugabyteDB tablespaces will get you there inside of their Apache 2 license.
Re:How does database sharding work? by 411111111111111 on Friday April 07, 2023 @08:11AM (#35480761)
It always triggers me to read "postgres compatible" when they've entirely skipped features such as database triggers

They've just selected a few features from postgres which they're compatible in.

Re:How does database sharding work? by alexvoda on Friday April 07, 2023 @09:13AM (#35481227)
I agree. I guess what they mean is you can use the existing adapter for your language.

The PostgreSQL organisation should create some trademarked badges to properly label the levels of compatibility other products offer.

Re:How does database sharding work? by rad_gruchalski on Saturday April 08, 2023 @07:41AM (#35492364)
YugabyteDB supports triggers. YugabyteDB is not just „postgres compatble”, it is postgres with a distributed layer.