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

Hmm. I wouldn't think so, but I don't actually know

Still, given the strategy at hand, the in-memory JS object (exclusively single-threaded) is the source of truth, and just gets mirrored in the file system (and doesn't get read again until the next startup). So you should have an eventual-consistency situation in the worst case (any racing issue between file-writes would just put the file in a stale state, and the next file-write would bring it back up to consistency)



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

Search: