Redis deep

From rnavarych/alpha-engineer · View interactive version

Redis deep is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Redis deep-dive: 8 data structures with use cases, Redlock distributed locking algorithm, sliding window rate limiter with sorted sets, pub/sub patterns, streams for event log, pipeline batching, keyspace notifications, memory eviction policies, Redis Cluster vs Sentinel. Use when implementing cachi

How to use this skill

Skill file

Redis Deep Dive

When to Use This Skill

Core Principles

  1. Redis is not a database for data you cannot afford to lose — AOF/RDB persistence is best-effort; design for Redis to be empty
  2. One connection per operation is wasteful — use pipelining for batch operations (10× throughput improvement)
  3. Key naming convention is critical — resource:id:field prevents collisions and enables pattern scanning
  4. TTL everything — unbounded keys accumulate until OOM; if no TTL makes sense, use a large one (7 days)
  5. Redlock requires majority quorum — N/2+1 nodes must confirm; never use single-node lock for distributed coordination

References available

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.