Remix.run Logo
a2ff6eeb0 4 days ago

What happens if the disk dies?

cloutiertyler 4 days ago | parent [-]

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.

a2ff6eeb0 4 days ago | parent | next [-]

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

cloutiertyler 4 days ago | parent | next [-]

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.

andersonpico 4 days ago | parent | prev [-]

how would a single node system survive the failure of its only node?

cloutiertyler 4 days ago | parent | next [-]

It wouldn’t. SpacetimeDB Cloud is not single node. And before you say it’s not open source, neither is CRDB.

andersonpico 2 days ago | parent [-]

you misunderstood me, I was responding to a2ff6eeb0 saying he agreed with the OP

4 days ago | parent | prev [-]
[deleted]
andersmurphy 3 days ago | parent | prev [-]

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.

cloutiertyler 3 days ago | parent [-]

You don’t need CockroachDB for high availability though.