ਰਿਪਲਿਕੇਸ਼ਨ ਕਈ ਸਰਵਰਾਂ ਵਿੱਚ ਡੇਟਾ ਦੀਆਂ ਕਾਪੀਆਂ ਬਣਾਈ ਰੱਖਦੀ ਹੈ — ਉਪਲਬਧਤਾ (ਅਸਫਲਤਾ ਤੋਂ ਬਚਣ), ਰੀਡ ਸਕੇਲਿੰਗ (ਕਾਪੀਆਂ ਤੋਂ ਪੜ੍ਹਨਾ), ਅਤੇ ਭੂਗੋਲਿਕ ਵਿਤਰਣ ਲਈ। ਵੱਖ-ਵੱਖ ਸਟ੍ਰੈਟਜੀਆਂ (primary-replica, multi-primary, sync vs async) ਵਿੱਚ ਵਪਾਰ-ਆਫਾਂ ਸ਼ਾਮਲ ਹੁੰਦੇ ਹਨ।
ਰਿਪਲਿਕੇਸ਼ਨ ਕਿਉਂ ਕਰੀਏ
✓ 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.
