Redis Is Not a Database. But Treat It Like One.

D
Dick Edidiong Bassey
·

The default Redis configuration disables persistence. Every restart, all data is gone. This is fine for an ephemeral cache. It is catastrophic for a session store or job queue.

In every production system I manage that uses Redis: persistence is enabled, maxmemory-policy is set explicitly, and Redis is never the single source of truth for data that must survive a restart.

The SysSoft IoT pipeline uses Redis to reduce database load by 75% on hot data paths. It works because we designed it with Redis's failure modes in mind from the start.

Use Redis. It is exceptional. Just know exactly what you are asking it to do — and what happens when it restarts.

— Dick Bassey | DevDick | 2023