Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm sure Ben will pop in with an explanation soon, but my understanding is that this is mainly about safety.

The way Litestream was doing replication required programmers to be extremely careful not to accidentally attempt a write to a replicated database copy - doing so would corrupt that copy, potentially in non-obvious ways. There was no practical mechanism for protecting people from making this mistake.

The FUSE approach for LiteFS has more control, so can do a better job of protecting people from this kind of mistake.



LiteFS author here. That's a good explanation, Simon. Preventing writes on the replica is a nice benefit to FUSE versus an external process.

Another benefit of the control is that we can maintain a rolling checksum of the entire database at each transaction so we're able to verify integrity when replicating. That's also what allows us to do asynchronous replication across a loose membership of nodes since we can easily detect if a node diverges.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: