🗃️Database Replication
Also known as Replication, Primary-Replica Replication
Live copies of a database kept on other servers. If one fails, the rest go on.
Think of it like
Think of it like a teacher writing on the board while kids copy it. If the board is wiped, the books still have it.
Example
Emma's shop runs one main server and two copies in other places. When the main disk dies, a copy takes over in under a minute.
Why it matters
One server is one point of failure. Replication keeps the data safe and the app running.
Definition
Common mistake
Key takeaways
- 1One writes, many copy. The primary sends each change.
- 2Ready to take over. A replica can become primary.
- 3Not a backup. Mistakes are copied too.