All posts / tag
#redis
-
Redis keys need owners
A shared Redis instance had accumulated locks, claims, counters, and flags with no common ownership or expiry rules. A small registry turned those anonymous keys into named coordination primitives with explicit failure behavior.
-
Debugging Redis::CannotConnectError in Ruby
Redis connection timeouts kept arriving in short bursts while the infrastructure graphs stayed clean. One client path had silently dropped the configured timeout when it built a new connection.
-
Dynamic per-user Rails debug logs, scoped to the request
A production bug affected one user, but enabling debug for the whole application would have buried the useful lines. This request-scoped override expired on its own and left everyone else's logs alone.