3 ms·
re SSDB: is there an ELI5 for doing disk writes "correctly"? And maybe something like Jespen for testing database persistence? Ages ago, I just used fsync() an
by specialist 6y ago
re SSDB: is there an ELI5 for doing disk writes "correctly"? And maybe something like Jespen for testing database persistence?
Ages ago, I just used fsync() and called it good. After reading Dan Luu's article, I'm pretty sure I'd never figure it out on my own.
"Files are hard" https://danluu.com/file-consistency/ https://danluu.com/file-consistency/
- welder 6y agoBecause files are hard, a lot of projects use a file system library called LevelDB/RocksDB [1] They interact with the library instead of directly with files. CockroachDB and SSDB are examples of projects using LevelDB. [1] https://en.wikipedia.org/wiki/RocksDB https://en.wikipedia.org/wiki/RocksDB