- The leader with the higher election term takes over according to the rules of Raft
- Build a library that sends and receives messages asynchronously
- Have a goroutine send a message
- Make sure that two goroutines aren’t trying to send messages over the same TCP connection
select {
case <- tcpread():
// try to read from connection for 3 seconds
case <- time.After(3 * time.Second):
// After 3 seconds, timeout
}- Create an excessively large space (hashtable) and map nodes across the space randomly (literally assign each node a random number)
- You give the new node a random number
- Find the items the first node with a higher number than the new node and rehash values that will now be incorrectly hashed