Question
Replication versus a backup: what does each preserve, and when should each be used?
Answer
Replication maintains a live copy that can receive the same unwanted writes or corruption. A backup preserves a retained recovery point. Use replication for availability and independently stored, restorable backups for recovery. Applies to Redis and Valkey.