cruise
cruise copied to clipboard
log should be written to a file
I think you should use leveldb instead of a standard filesystem :D, or at least provide a way to add a level backend. Level is very simple to use, so... :D.
Haha, I was actually thinking about using level! :D
The goraft/raft implementation fsync's on every 'append', so I mainly left this as a reminder so that we shouldn't forget that bit haha. Also -- syncing/reading from the existing log on startup would be pretty useful. In level I guess we could even use a .createReadStream() command or whatever gives you back a range of keys to get all the log entries. Seems like a good fit!
I totally agree, was actually looking into this :). We can even default to just be pure JavaScript and allow other backends to be pluggable