redis-rb / redis-client

Simple low level client for Redis 6+
MIT License
124 stars 60 forks source link

Implement circuit breakers #70

Closed casperisfine closed 1 year ago

casperisfine commented 1 year ago

Fix: https://github.com/redis-rb/redis-client/pull/55

When using Redis as a cache, if the server is having issues rather than to retry connecting many times, it's preferable to mark the server as unhealthy and to not to try to reconnect for a while.

NB: The code is mostly done, but I got sidetracked in the middle of the README changes, I'll try to finish tomorrow. FYI @DChalcraft