This document explains our basic replication architecture and might be helpful http://www.rethinkdb.com/docs/architecture/
Let me know if you want to know more about a specific aspect.
Let me know if you want to know more about a specific aspect.
Sounds like you need to implement raft. Do you have any plans in that direction?