All posts / tag
#ruby
-
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.
-
What concurrent Ruby looks like, twelve years after the book
A cache benchmark exposed a serial bottleneck that no mutex explained. I went back through Ruby's thread model, then tested where Ractors, fibers, and atomic snapshots actually help.
-
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.