MongoDB uses an on disk journal to guarantee write operations and to provide crash resiliency. MongoDB creates a journal for every write that includes the exact disk location and the bytes that changed in the write. Thus if you have a crash in the server, the journal can be used to replay any writes that …