Redis to the Rescue
summary
Case study of a Facebook game that uses Redis as the primary backend, storing each player as a hash per user and running on cheap single‑CPU servers. Virtual memory plus replication/persistence breaks, so replication and RDB/AOF get disabled and a cron dumper implements 10 minute dumps (≤10 minutes of data loss). Later the built‑in diskstore replaces the duct‑tape dumper, enabling sharding with two Redis processes sharing diskstore and hitting 3,000 req/s (≈35–40k ops/s) at ~10 ms latency.
AI-written summary · about
