Master
The database that serves reads and writes, and copies the writes to the slaves.
Example
When you post a photo, the write goes to the master; the master copies it to the 3 slaves.
Test yourself: Master
Replication
In master-slave, slaves accept writes.
Only the master writes; slaves receive the copy and serve reads. 1 writer, N readers.
Replication
How do you write again after the master goes down?
A slave already has almost all the data: in about 30 seconds it becomes master and accepts writes again.
0/2
â–¶ Play