News for hackers. Stuff that matters.
Re:How Figma's databases team lived to tell the scale by kamikaz1k on Thursday March 14, 2024 @07:52PM (#39710445)
Never used cockroach so pardon my ignorance, but are there no operational challenges with running/using them? Or are they the same challenges? And how compatible is it from an application developer perspective?
Re:How Figma's databases team lived to tell the scale by brigadier132 on Thursday March 14, 2024 @08:01PM (#39710513)
The managed service is hassle free and it's auto sharded so you don't have traditional scaling issues. You do need to think about how your index choices spread writes and reads on the cluster to avoid hotspots. It's almost completely compatible with postgres wire protocol but it doesn't support things like extensions for the most part.
Re:How Figma's databases team lived to tell the scale by jamra on Thursday March 14, 2024 @08:02PM (#39710521)
CRDB is Postgres compliant so the wire protocol and SQL syntax is all Postgres. It should be a 1 to 1.
Re:How Figma's databases team lived to tell the scale by jimbokun on Thursday March 14, 2024 @08:10PM (#39710577)
Are all the corresponding latencies for every query one to one too?
Re:How Figma's databases team lived to tell the scale by hinkley on Thursday March 14, 2024 @09:42PM (#39711244)
In ye olden times I used to stop bosses from throwing away the slowest machine we had, and try to get at least one faster machine.

It’s still somewhat the case, but at the time the world was rotten with concurrent code that only worked because an implicit invariant (almost) always held. One that was enforced by the relative time or latency involved with two competing tasks. Get new motherboards or storage or memory and that invariant goes from failing only when the exact right packet loss happens, to failing every day, or hour, or minute.

Yes, it’s a bug, but it wasn’t on your radar and the system was trucking along yesterday and now everything is on fire.

The people who know this think the parent is a very interesting question. The people who don’t, tend to think it’s a non sequitur.

Re:How Figma's databases team lived to tell the scale by adbachman on Friday March 15, 2024 @08:21AM (#39714726)
This is the important question.

We evaluated several horizontally scalable DBs and Cockroach was by far the slowest for our access patterns.

Re:How Figma's databases team lived to tell the scale by imbradn on Monday March 18, 2024 @07:36PM (#39751372)
Except for the un-implemented features which they might need.

It also uses serializable isolation and in their implementation reads are blocked by writes unlike in Postgres. Those are both significant changes that can have far reaching application impacts

Re:How Figma's databases team lived to tell the scale by MarkMarine on Thursday March 14, 2024 @09:22PM (#39711119)
There are TONS of operational issues running cockroach. At the last company I was at cockroach was probably over used as a magical way to run multiple DCs and keep things consistent without high developer overhead, but it was #1 source of large outages. So much so that we’d run a cockroach segmented out for a single microservice to limit the blast radius when it eventually failed.

That and its comically more expensive than Postgres, if you think IOPs are expensive wait till you see the service contract.