Live data from Hacker News

Cockroach Labs Gets $87M in New Funding

theinformation.com

11–14 of 14 posts

Re: Cockroach Labs Gets $87M in New Funding

#11
post #8

We recently migrated a few small systems to CockroachDB (as a stepping stone). Overall, the experience was positive. The hassle free HA is a huge peace of mind. I know people say this is easy to do in PG. I have recently setup 2ndQuadrant's pglogical for another system. That was also easy (though the documentation was pretty bad). The end result is quite different though and CockroachDB is just simpler to reason abou…

This has been pretty much my experience as well.

The killer features are definitely the HA and the region-based sharding, but the backup situation and bugs are a real bummer. Not a total dealbreaker, but teetering right on the edge.

We are looking closely at moving to FoundationDB at some point.

Re: Cockroach Labs Gets $87M in New Funding

#12

At my last company, we had a great experience using postgresql flavored Aurora, especially because we could use recursive CTEs to do deep traversal of graphs. Since CockroachDB is SQL, what would be the benefit over using Aurora?

Afaik, Postgres flavored Aurora has a single master for writes and doesn't allow horizontally scaling writes[1]. I believe reads can scale by bringing up multiple read replicas. Cockroach DB is "distributed SQL" so writes are also scaled across multiple nodes.

You can see some details about how this affects write perf in this blog by another distributed SQL database which compares the three databases (YugabyteDB, Aurora and CockroachDB) - https://blog.yugabyte.com/comparing-distributed-sql-performa...

[1] There is also multi-master Aurora (but based on https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide... that only supports 2 read-write masters and has other limitations).

Re: Cockroach Labs Gets $87M in New Funding

#13
post #11
post #8

We recently migrated a few small systems to CockroachDB (as a stepping stone). Overall, the experience was positive. The hassle free HA is a huge peace of mind. I know people say this is easy to do in PG. I have recently setup 2ndQuadrant's pglogical for another system. That was also easy (though the documentation was pretty bad). The end result is quite different though and CockroachDB is just simpler to reason abou…

This has been pretty much my experience as well. The killer features are definitely the HA and the region-based sharding, but the backup situation and bugs are a real bummer. Not a total dealbreaker, but teetering right on the edge. We are looking closely at moving to FoundationDB at some point.

> We are looking closely at moving to FoundationDB at some point.

I'm curious to better understand the use case where this change makes sense.

CockroachDB does a lot more than FoundationDB. FoundationDB is pretty much just a KV store. There are layers out there but they IIUC they have immature drivers. Have you had success developing applications on top of any of them?

Do features like secondary indexes, joins, or constraints matter for your use case?

A big thing cockroach does that foundation doesn't help with at all is contention. If transactions contend in foundation, they will fail with retriable errors at commit time. The process of coordinating concurrent read-write and write-write interactions fall onto the layer implementer. This is a huge burden. Cockroach has an increasingly advanced story around concurrency control. It's a problem which should not be understated.

Other important properties are:

  * Rolling upgrades
  * Long-running transactions (they are starting to have a story about read-only transaction with the new storage engine)
  * Online schema changes coordinated by the system.
  * FoundationDB has a nascent story around multi-region which seems doomed to poor performance and even then only exists to provide higher availability at the cost of synchronous replication (i.e. there is no geo-partitioning).
I don't want to sound overly critical about FoundationDB. It's a very cool piece of software for a single-region, scale-out, consistent KV that, for right use-case, which is low-contention or externally coordinated, can probably deliver a high degree of predictability.

edit: I work on CockroachDB.

Re: Cockroach Labs Gets $87M in New Funding

#14
post #8

We recently migrated a few small systems to CockroachDB (as a stepping stone). Overall, the experience was positive. The hassle free HA is a huge peace of mind. I know people say this is easy to do in PG. I have recently setup 2ndQuadrant's pglogical for another system. That was also easy (though the documentation was pretty bad). The end result is quite different though and CockroachDB is just simpler to reason abou…

> Running in single-node-mode with an _in memory_ database (for our integration tests) is still slower than postgresql.

Can you share your numbers to have some kind of order of magnitude for this difference?

Post reply on HN