From c4dc4b0f889a90beb75a687b1254223171b8188e Mon Sep 17 00:00:00 2001 From: Donne Martin Date: Tue, 28 Feb 2017 05:01:54 -0800 Subject: [PATCH] Add Master-slave replication section --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index e9aa655..b549f22 100644 --- a/README.md +++ b/README.md @@ -903,3 +903,18 @@ A relational database like SQL is a collection of data items organized in tables * **Durability** - Once a transaction has been committed, it will remain so There are many techniques to scale a relational database: **master-slave replication**, **master-master replication**, **federation**, **sharding**, **denormalization**, and **SQL tuning**. + +#### Master-slave replication + +The master serves reads and writes, replicating writes to one or more slaves, which serve only reads. Slaves can also replicate to additional slaves in a tree-like fashion. If the master goes offline, the system can continue to operate in read-only mode until a slave is promoted to a master or a new master is provisioned. + +

+ +
+ Source: Scalability, availability, stability, patterns +

+ +##### Disadvantage(s): master-slave replication + +* Additional logic is needed to promote a slave to a master. +* See [Disadvantage(s): replication](#disadvantages-replication) for points related to **both** master-slave and master-master.