News for hackers. Stuff that matters.
Re:IO Devices and Latency by bddicken on Thursday March 13, 2025 @02:00PM (#43355775)
> Your "1 in a million" comment on durability is certainly too pessimistic once you consider the briefness of the downtime before a new server comes in and re-replicates everything, right?

Absolutely. Our actual durability is far, far, far higher than this. We believe that nobody should ever worry about losing their data, and thats the peace of mind we provide.

Re:IO Devices and Latency by alfons_foobar on Thursday March 13, 2025 @05:43PM (#43357511)
> Instead of relying on a single server to store all data, we can replicate it onto several computers. One common way of doing this is to have one server act as the primary, which will receive all write requests. Then 2 or more additional servers get all the data replicated to them. With the data in three places, the likelihood of losing data becomes very small.

Is my understanding correct, that this means you propagate writes asynchronously from the primary to the secondary servers (without waiting for an "ACK" from them for writes)?

Re:IO Devices and Latency by bddicken on Thursday March 13, 2025 @07:24PM (#43358255)
For PlanetScale Metal, we use semi-sync replication. The primary need to get an ack from at least one replica before committing.
Re:IO Devices and Latency by anonymousDan on Thursday March 13, 2025 @08:04PM (#43358456)
Is that ack sent once the request is received or once it is stored on the remote disk?
Re:IO Devices and Latency by alfons_foobar on Friday March 14, 2025 @10:03AM (#43362746)
Soo... We have a network hop after all?
Re:IO Devices and Latency by bddicken on Saturday March 15, 2025 @04:31PM (#43374962)
For writes, yes. But what if your workload is 90% reads?
Re:IO Devices and Latency by alfons_foobar on Sunday March 16, 2025 @05:33AM (#43377816)
It makes a lot of sense for read-heavy workloads, for sure!

I was just trying to get a better understanding of what is happening under the hood :)