log replication of AppendEntries rpc implementation, apply log on leader memory storage, and replicate log to followers