Replication
Last updated
What is Replication?
Replication is the process of copying data from one database to another. Replication is used to increase availability and scalability of databases. There are two types of replication: master-slave and master-master.
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.
Master-master Replication:
Both masters serve reads and writes and coordinate with each other on writes. If either master goes down, the system can continue to operate with both reads and writes.
More in stage 14: Asynchronism
Replication: common questions
Can I learn Replication in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Replication in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Replication tutorial for beginners?
It is lesson 44 of 147 in the free System Design roadmap, in stage 14, Asynchronism. If you are new to System Design, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.