Chapter 3. Preparing for server loss with replication