News for hackers. Stuff that matters.
Re:Ok, but Does It Scale? by rockwotj on Friday September 04, 2026 @12:42PM (#49566992)
> It sounds like transactions by default are required to be written to disk before completion

They are yolo mode by default with periodic fsync and a big mutex around every reducer: https://strn.cat/posts/spacetime/ (granted things may have changed since that blog post)

> I can't recall seeing a network-bound cluster

I saw some of these (most packets per second not bandwidth) in the Firebase Realtime Database because changes get broadcast to many users. Since SpacetimeDB is made for games this is the same synchronization effect. Traditional databases don’t do this which is why Cockroach wouldn’t have seen it.

Re:Ok, but Does It Scale? by cloutiertyler on Friday September 04, 2026 @12:45PM (#49567037)
I concede that we do have a big lock. But that is only because we did the alternative first and it performed worse, which is what OPs article is about.

Reposting what I posted below regarding the strn.cat article:

I'm a cofounder of SpacetimeDB (and the author of OPs article). The https://strn.cat/posts/spacetime/ article has several substantial errors. I've spoken with Vicent directly about them.

Most notably, almost the entire commentary about durability is incorrect. SpacetimeDB does not acknowledge anything before data is fully persisted to disk, even though he claims it does. Clients CAN chose to listen before that, but you can do the same thing in Postgres if you want.

There is no 50 ms delay to writing to disk. The article is mostly nonsense.

Ask Claude yourself: https://github.com/clockworklabs/SpacetimeDB

He spent 15 minutes looking at our code (by his own admission), having never written a database storage engine before AFAIK, and made a pronouncement that SpacetimeDB wasn't a good database. Crazy stuff.

Re:Ok, but Does It Scale? by a2ff6eeb0 on Friday September 04, 2026 @02:55PM (#49568653)
What happens if the disk dies?
Re:Ok, but Does It Scale? by cloutiertyler on Friday September 04, 2026 @02:58PM (#49568718)
The SpacetimeDB Cloud version runs with distributed replication, so it continues to be available on the other nodes.

On the SpacetimeDB Standalone (single node) version, you lose your data, same as you would with Postgres or Sqlite.

Re:Ok, but Does It Scale? by a2ff6eeb0 on Friday September 04, 2026 @03:04PM (#49568788)
So, in short, I think I agree with the op:

> I don't see anything that indicates how spacetime solves the core problem CRDB does, which is guaranteeing that single node failures can be tolerated with zero data loss or loss of availability

Re:Ok, but Does It Scale? by cloutiertyler on Friday September 04, 2026 @03:11PM (#49568904)
I'm not sure I follow. SpacetimeDB Cloud has the same exact behavior as CRDB in terms of tolerating single node failure and loss of availability.
Re:Ok, but Does It Scale? by andersonpico on Friday September 04, 2026 @03:26PM (#49569083)
how would a single node system survive the failure of its only node?
Re:Ok, but Does It Scale? by a2ff6eeb0 on Friday September 04, 2026 @04:02PM (#49569533)
If you only have a single node, you're not scalable.
Re:Ok, but Does It Scale? by cloutiertyler on Friday September 04, 2026 @05:57PM (#49570715)
It wouldn’t. SpacetimeDB Cloud is not single node. And before you say it’s not open source, neither is CRDB.
Re:Ok, but Does It Scale? by andersonpico on Sunday September 06, 2026 @12:21PM (#49588020)
you misunderstood me, I was responding to a2ff6eeb0 saying he agreed with the OP
Re:Ok, but Does It Scale? by andersmurphy on Saturday September 05, 2026 @03:45AM (#49574133)
I think people get hung up on high availability (HA), and ironically don't test their backups. Single node with streaming backups to S3 (simple in a single writer system) can give you a system that will at most lose a few seconds of data (interestingly RDS has a 5 minute window of dataloss).

Multi node systems tend to have more failure modes, so fail more often, high availability is not free.

If you replicate data between two nodes (that are note async backups). You have to maintain strong data consistency. So writes to the database are considered successful only if the data is written to both nodes. If either node became unavailable you'd be unable to write anything without sacrificing consistency, reducing our overall availability rather than improving it. Also increasing latency.

This is why the whole multi node HA push by the industry is so laughable. A lot of time it makes systems more fragile.

Re:Ok, but Does It Scale? by cloutiertyler on Saturday September 05, 2026 @10:30AM (#49576866)
You don’t need CockroachDB for high availability though.
Re:Ok, but Does It Scale? by rockwotj on Friday September 04, 2026 @07:58PM (#49571588)
Sorry for spreading misinformation!
Re:Ok, but Does It Scale? by cloutiertyler on Saturday September 05, 2026 @10:34AM (#49576904)
Hardly your fault! It’s the responsibility of the person writing the article to do the technical diligence. Nevertheless did want to address it.