Fsync () every time a new command is added to the append log file: It is safe but very slowFysnc() one time every second : It is fast, but you may lose 1 second of data if system failsfsync() : It is an unsafe method, and your data is in hand of Operating System