Redis Review
Review Redis for data structure selection, persistence, memory, pub/sub, Lua, cluster, sentinel, and security.
Key Checks
- Data structure selection: Hash over JSON String for object access, Sorted Set for rankings, Streams over pub/sub for reliable messaging
- Persistence: hybrid (aof-use-rdb-preamble yes) recommended, appendfsync everysec balance
- maxmemory set, eviction policy matches use case (allkeys-lru for cache, noeviction for queue)
- MEMORY USAGE for large key detection, encoding audit via OBJECT ENCODING
- Pub/sub for fire-and-forget only — Streams for reliable delivery with consumer groups
- Lua scripts via EVALSHA, short-running (single-threaded blocks), KEYS array for cluster compat
- Cluster: hash tags for multi-key ops, odd master count, cluster-node-timeout tuned
- Sentinel: min 3 instances, Sentinel-aware client, down-after-milliseconds tuned
- Pipeline for batch operations (100-1000 commands), distinguish from MULTI/EXEC atomicity
- requirepass set, bind private IP, dangerous commands renamed, TLS for Redis 6+
Output
Severity-sorted: CRITICAL, HIGH, MEDIUM, LOW, PASSED.
1---2name: redis-review3description: Review Redis data structures, persistence, memory, clustering, and patterns for performance and reliability4agent: database-reviewer5argument-hint: "<config-file-or-schema-or-pattern>"6tags: [database, redis, cache, performance, clustering]7user-invocable: true8---910# Redis Review1112Review Redis for data structure selection, persistence, memory, pub/sub, Lua, cluster, sentinel, and security.1314## Key Checks15- Data structure selection: Hash over JSON String for object access, Sorted Set for rankings, Streams over pub/sub for reliable messaging16- Persistence: hybrid (aof-use-rdb-preamble yes) recommended, appendfsync everysec balance17- maxmemory set, eviction policy matches use case (allkeys-lru for cache, noeviction for queue)18- MEMORY USAGE for large key detection, encoding audit via OBJECT ENCODING19- Pub/sub for fire-and-forget only — Streams for reliable delivery with consumer groups20- Lua scripts via EVALSHA, short-running (single-threaded blocks), KEYS array for cluster compat21- Cluster: hash tags for multi-key ops, odd master count, cluster-node-timeout tuned22- Sentinel: min 3 instances, Sentinel-aware client, down-after-milliseconds tuned23- Pipeline for batch operations (100-1000 commands), distinguish from MULTI/EXEC atomicity24- requirepass set, bind private IP, dangerous commands renamed, TLS for Redis 6+2526## Output27Severity-sorted: CRITICAL, HIGH, MEDIUM, LOW, PASSED.