This is an implementation of the Raft consensus algorithm. Writing this implementation went very smoothly, and I was pleased with the overall understandability and simplicity of the Raft protocol! I attempted to structure the code in a readable, bite-sized manner, while I was writing it. Towards the end, some of that cleanliness got muddled, but I still believe it's readable.
I was pleased that once I filled in the last of my own TODO blocks, everything just worked. Writing this implementation signficantly helped my understanding of Raft and similar consensus algorithms.