Aunque Redis es en memoria, puede persistir datos en disco para que los datos sobrevivan a reinicios. Ofrece dos mecanismos — RDB (snapshots de un momento en el tiempo) y AOF (registro de operaciones append-only) — con diferentes compromisos entre durabilidad y rendimiento.
RDB — snapshots de un momento en el tiempo
RDB takes SNAPSHOTS of the dataset at intervals, saving a compact binary file.
✓ Compact single-file backups; fast restarts (load the snapshot)
✓ Good for backups and disaster recovery; less impact on performance
✗ You can LOSE data since the last snapshot (e.g. last few minutes) if Redis crashes
→ Configure save points: e.g. "save after 900s if ≥1 change, 300s if ≥10 changes"
