Hacker News new | past | comments | ask | show | jobs | submit login

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/




Because 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




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

Search: