How to skip rate limit check when Redis is down? #122
-
Hello @MarcGiffing, @vladimir-bukhtoyarov, When Redis is down, I am getting a RedisConnectionFailureException. Thanks a lot, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You may add a Skip Condition to your filter: bucket4j.filters[0].rate-limits[0].skip-condition=@redisStatusCheck.isDown() You have to provide a Bean with the name redisStatus with implements the example methods. |
Beta Was this translation helpful? Give feedback.
You may add a Skip Condition to your filter:
bucket4j.filters[0].rate-limits[0].skip-condition=@redisStatusCheck.isDown()
or
bucket4j.filters[0].rate-limits[0].execute-condition=@redisStatusCheck.isUp()
You have to provide a Bean with the name redisStatus with implements the example methods.