Skip to content

JCache vs Redisson for Redis-based Bucket4J #445

Discussion options

You must be logged in to vote

Hello @daichi-m

  1. I have never heard that Bucket4j works correctly in case of JCache over Redisson. I strongly recommend to use direct integration with Redisson.
  2. Everyone Bucket4j integration works correctly in distrubited scenario. By default token consumption is being synchronized imediatelly, if you want to avoid imediate synchronization you can configure some optimization during bucket construction via builder, see this and this.
  3. TTL can be configured by configuring ExpirationAfterWriteStrategy see this exampl

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@daichi-m
Comment options

Answer selected by daichi-m
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