Questions about distributed cache #336
-
Bucket4J documentation says: Bucket4j authors strongly recommends to use JVM based back-ends when possible, but for cases where it is not possible Bucket4j provides following integrations with non-JVM based storages. Q: Can someone call out the top reasons for this recommendation? ( I am guessing it is for the performance, but exactly in what area?)
Q: I am guessing all the options discussed and supported by Bucket4J are of Option 1. Am I correct? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @sjoshi-liveperson
JVM based in-memory solutions provide support for concept called EntryProcessors. Utilizing this feature by Bucket4j allows to make remote requests faster. Redis/Tarantool has similar cocept called as Lua Stored procedures, but this functionality has not adopted yet by Bucket4j, that is why JVM based backeds will always faster.
A some sort of second variant is supported too. There are varios optimizations strategies that should be used when contention on the bucket is high. Version |
Beta Was this translation helpful? Give feedback.
Hello @sjoshi-liveperson
JVM based in-memory solutions provide support for concept called EntryProcessors. Utilizing this feature by Bucket4j allows to make remote requests faster. Redis/Tarantool has similar cocept called as Lua Stored procedures, but this functionality has not adopted yet by Bucket4j, that is why JVM based backeds will alw…