08 - Replication & High Availability
Why Replication?
Replication serves multiple purposes:
- High Availability: If primary fails, replica takes over
- Read Scaling: Distribute read load across replicas
- Disaster Recovery: Geographic redundancy
- Backups: Run backups without impacting primary
- Analytics: Run reports on replica, not production
Types of Replication
1. Physical (Binary) Replication
Replicates the exact disk blocks from primary to replica.
Plain text