Master-slave replication involves one primary node (master) that handles all write operations, while one or more secondary nodes (slaves) receive copies of the data and typically handle read operations.
How it works:
All writes go to the master node
Master propagates changes to slave nodes
Reads can be served from either master or slaves
If master fails, one slave can be promoted to master
Advantages:
Simple to implement and understand
Consistent writes (single point of truth)
Read scalability through multiple slaves
Disadvantages:
Single point of failure for writes
Write bottleneck at master
Potential data loss during failover
Rewriting in plainer words…
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.