imrenagi/raft

Mechanism for storing log entries

Opened this issue · 0 comments

  • A mechanism for storing log entries in one or more files. The contents of each log entry will be a string of any length. In addition to the string, you must also store a term number with each log entry. Your design must be efficient enough to support logs containing millions of log entries and update rates of 100-1000 new entries per second. You may not use an existing database system or storage system for this: you must build your functionality on the basic C/C++ file I/O facilities such as fopen, std::iostreamstd::fstream. If you are not sure whether it's OK to use a particular library in your implementation, check with me.

Notes
For the main class that implements your log storage, create an initial version of the file that contains top-level declarations and interface comments, but no method bodies. Commit this version of the file as a separate commit on the project2 branch, and tag that commit commentsBeforeCode2. Make sure that the message for this commit also includes the name of the file. I recommend that you write comments before code for all your files, but I will only require it for this one file.