Skip to content

How to skip rate limit check when Redis is down? #122

Answered by MarcGiffing
liron-tepper asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MarcGiffing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants