A deep dive into Raft Leader Election — server roles, terms, heartbeats, RequestVote RPC, and a working Spring Boot + Docker simulation.