Redis restarted after a node reboot and every shopping cart and queued job is gone.
BeginnerTroubleshootingData loss and corruption
Answer
Likely causes → Redis was used as a primary data store with persistence turned off (no RDB snapshots, no AOF), so everything lived only in memory.
Diagnose →
redis-cli CONFIG GET save
redis-cli CONFIG GET appendonly
redis-cli INFO persistence | grep -E 'rdb_last_save_time|aof_enabled'
Fix → The lost data can't be recovered from Redis. Rebuild what you can from the source of truth (orders in the DB, events in a log). Turn on persistence now.
Prevent → Decide explicitly whether data in Redis is a cache (fine to lose) or state (must persist). For state, enable AOF (appendonly yes, appendfsync everysec) plus RDB snapshots, run replicas, or move durable data such as job queues to a system built for it (a database, SQS, Kafka).
More on Data loss and corruption
An engineer ran `DELETE FROM orders;` on the production Postgres (forgot the `WHERE`) at 14:32.BeginnerA cleanup script deleted every object under `s3://acme-invoices/2025/`. Versioning is enabled.BeginnerYou need to restore last night's MySQL backup and discover the dump files for the past three months are 20 KB each.IntermediateUsers update their profile, the page reloads, and they see the old values; a minute later the new values show up.IntermediateA network partition between data centres lasted 4 minutes; afterwards you find both sites accepted writes as primary, and the same order IDs exist with different contents.AdvancedA deploy ran a migration that dropped the `phone` column; old pods still running during the rolling update threw 500s, and a background job wrote nulls into a new table.Intermediate