Problem with Redisson and Elasticache #422
-
Hello everyone, i configured my application to use redisson(3.23.3) and bucket4j(8.3.0) , my redis cluster is a elasticache at aws , but when my application start to receive a lot of requests, the application is down, because out of memory, my doubt is , Bucket4j support cluster with redisson or a i need to change to lettuce, you already seen this problem in another case
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
What is request rate on single key? Currently all Redis integrations is built on top of Compare-and-swap paradigm. CAS should works good with high request rate when requests are well distributed across keys, and obviously CAS sucks for fat keys. If you have per user limits I suppose that it should works with accaptable latency, but if you have per country or single limit for all users it will not work without special settings from this package. And obviously, replacing Redisson by Lettuci will not help, because architecure is still the same. Currently,I am awaiting for next major Redis release According to Redis Cluster and Redisson. This marked in docs as not supported |
Beta Was this translation helpful? Give feedback.
What is request rate on single key? Currently all Redis integrations is built on top of Compare-and-swap paradigm. CAS should works good with high request rate when requests are well distributed across keys, and obviously CAS sucks for fat keys. If you have per user limits I suppose that it should works with accaptable latency, but if you have per country or single limit for all users it will not work without special settings from this package. And obviously, replacing Redisson by Lettuci will not help, because architecure is still the same. Currently,I am awaiting for next major Redis release
8.0
, which will provide Javascript functions, and it will helpfull to replace not scallable CAS …