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

One important note: make sure you carefully consider using atomic renames and such for manipulating the files! Overwrite in place is a great way to end up with a corrupted item if something goes desperately wrong and you're not protected by COW or data journaling.


Usually you write these sorts of things as append only with an optional garbage collect. You get a minimal sort of Atomicity with that.




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

Search: