La replicazione mantiene copie dei dati su più server — per disponibilità (sopravvivere ai guasti), scalabilità in lettura (servire letture da copie), e distribuzione geografica. Diverse strategie (primary-replica, multi-primary, sincrone vs asincrone) comportano compromessi.
Perché è importante
✓ AVAILABILITY/redundancy → if one copy fails, others have the data (no data loss, failover)
✓ READ SCALING → serve reads from replicas (offload the primary) → handle more reads
✓ GEO-DISTRIBUTION → copies near users (lower latency); disaster recovery
→ replication is fundamental to reliable, scalable data systems.
