3 ms·
It has complex failure modes though, unless you're not at all concerned about what happens if the program crashes, power goes out, file gets corrupted, etc. It
by slashdev 5y ago
It has complex failure modes though, unless you're not at all concerned about what happens if the program crashes, power goes out, file gets corrupted, etc.
It's surprisingly difficult to write something that stores changing data on disk correctly and durably.
- 00000000005 5y agoDatabases have the same problems when disks fail, power goes out etc.
- eloff 5y agoIf you mean they have to solve the same problems with very careful design and programming, yes. It's non trivial. Even Postrgres had a correctness issue around fsync for nearly twenty years. If you roll your own, that's very hard to get right. I wouldn't have confidence in such a system that I've built myself.