redis-production-engineering
Skill0 starsChanged 13 days agoMITView on GitHub
Design, implement, troubleshoot, optimize, or operate Redis-backed applications and infrastructure, including caching, messaging, atomic state, tenant isolation, and recovery. Use for Redis-specific engineering decisions; skip unrelated backend work and trivial command edits.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- api-design-engineeringSkill
- deep-readonly-system-auditSkill
- distributed-systems-reliabilitySkill
- engineering-research-intelligenceSkill
- flutter-app-engineeringSkill
- go-backend-engineeringSkill
- multi-tenant-access-controlSkill
- nextjs-fullstack-engineeringSkill
- nodejs-backend-engineeringSkill
- postgresql-data-engineeringSkill
- react-vite-dashboard-engineeringSkill
- real-world-test-engineeringSkill
- repository-structure-engineeringSkill
- saas-security-engineeringSkill
- task-subagent-orchestrationSkill
- universal-database-engineeringSkill
The file
Files
Redis Production Engineering
Make Redis's actual guarantees fit the application's responsibility. Preserve sound clients, utilities, topology and authoritative storage. Redis is more than a cache, but its presence does not justify replacing a database, RabbitMQ, an existing queue or another working mechanism.
Reconstruct the responsibility
Identify the task: new capability/infrastructure, focused repair, performance investigation, operational change or read-only audit. Inspect applicable instructions and only the relevant producers, consumers, key builders, database writes, client configuration, deployment and tests. Expand when a real dependency appears. Honor read-only scope across tools and companion skills.
Establish configured, installed and deployed server/client versions, distribution/edition, enabled capabilities, RESP mode and topology. Record what remains unknown. A managed service or Redis-compatible product may differ from Redis Open Source. Check version-matched command history, client APIs, release notes and relevant source/tests before selecting newer behavior. Do not upgrade merely to use a convenient command.
For each affected responsibility, identify the authoritative state, validated tenant/actor, allowed staleness/loss, retention, atomic boundary, cardinality, peak load and recovery objective. Determine behavior on timeout, unknown completion, eviction, restart and failover. Disposable cache, session/revocation state, work queues and coordination may require different resource and durability policies; logical databases do not isolate security or capacity.
Load only the needed guidance
| Current decision | Conditional reference |
| Freshness, repeated misses, stampedes, invalidation or L1 caching | Caching and freshness |
| Pub/Sub, real-time fan-out, Streams, consumer groups or queue choice | Messaging and processing |
| Atomic updates, Lua/Functions, leases, idempotency or quotas | Atomicity and rate limiting |
| Key design, ACLs, tenant isolation, client retries or connections | Tenancy and clients |
| Linux/containers/managed service, topology, memory, recovery or diagnosis | Infrastructure and recovery |
| Data-structure selection, advanced features or compatibility | Capabilities and compatibility |
| Upstream evidence, source observations or further targeted research | Research index |
Do not load all references for a localized problem. Reuse existing research when applicable; investigate consequential uncertainty with available engineering-research-intelligence guidance. Complement database, runtime, authorization, security or distributed-workflow skills only when their boundary is involved; they are not prerequisites. Use orchestration/audit skills when the actual scope calls for them, without weakening user restrictions.
Protect the actual invariant
Choose the smallest mechanism that satisfies the workload. Redis-local atomicity does not cover database transactions or external effects. Pipelining is not a transaction; transactions and scripts are not SQL rollback. A timeout does not establish that a command failed, a lease does not stop its former owner, Pub/Sub is not durable delivery, and replication is not strong consistency. Cache hit rate and PING do not establish business correctness.
Explain the chosen failure policy per responsibility. Reuse existing reconciliation, idempotency and authoritative checks where necessary; do not add a scripting framework, Cluster, Sentinel, locks, polling or a second client system without a concrete benefit. Keep tenant and permission context intact through reads, events, caches and recovery.
Verify proportionately and report
Derive failure scenarios from the real call path: pause between the authoritative read/write and Redis update, lose the reply after execution, or let ownership/authorization change while work remains in flight. Select relevant isolated tests and assert final application state and user-visible recovery, not only command success. Normal documentation/configuration validation is sufficient for a skill-only change; do not create a benchmark or agent-evaluation campaign by default.
For operational changes, verify effective configuration and recovery behavior in an authorized environment. Never infer restore, failover, security or throughput success from research alone. Avoid destructive production experiments. Report the local finding, compatibility/guarantee limits, selected change, actual checks, application impact and remaining uncertainty. Do not claim tests or measurements that were not executed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

