Redisson is spamming redis
Spring boot app using hibernate and redis as cache.Problem is - redis have up-to 80K op/sec when app get 250 rps.here is spring configuration for redis (from...
View ArticleUnexpected error occurred in scheduled task, None of slaves were synced -...
Applying locks on kafka events using redis so that same kafka event will not process by multiple pods.java.lang.IllegalStateException: None of slaves were synced...
View ArticleJava Redisson unlock exception
I'm using this common code in my distributed locker service:private <T> T lockAndProcessTask(String lockKey, boolean waitForLockRelease, Supplier<T> task, Supplier<T>...
View ArticleJava Redisson Client Redis Exceptions :...
I'm setting up a Redis cache layer using AWS Elasticache Redis version 7.0.7I'm usign Java Redisson client version 3.16.0 and java version 1.8However one of the requirement is to setup a fallback...
View Articlelog Redis commands fired by Redisson Java client
Is there any available logger that can be used to show the commands executed by Redisson to Redis?e.g. like hibernate show sql flag.Something like when code does redisson.getJsonBucket().set() then the...
View ArticleDoes springDataRedis not support native-image of graalvm?
My project is based on spring boot 3, and my code runs without any issues under the jvm. However, when I compile and run it under Linux using grailvm, I encountered an errorThe error is as...
View ArticleRedis - Multiple caches with different TTL
I'm working with Java 17 / Spring and this application.yml is working well.The problem is I need a different time-to-live for each cache:10s for cache120s for cache2spring: cache: cache-names: cache1,...
View Articlehow to read json value for a key in jedis?
I have a code where I need to get a json value for the key "product_id" using Jedis but I don't know if jedis.get() operation can output json directly. Here is the code below. Jedis jedis =...
View ArticleJedis : Could not get a resource from the pool
BackgroundOur application uses Jedis-2.2.1 and connects to Redis-2.6, here's how I get jedis resource : protected static JedisWrapper getRedisUserWrite(String UDID) { if (redisUserWritePools.get(0) ==...
View ArticleHow to cache objects in redis in their specific regions using RedisTemplate...
I want to cache two different Java objects or POJOS in two different regions in Redis. I want the following region structure in Redis.MyRegions::ProductMyRegions::OrderThe Product objects should be...
View ArticleSpring Boot Redis GenericJackson2JsonRedisSerializer problems with BigDecimal
We want to use @Cacheable in Spring Boot with redis, and we want the redis content to be JSON so it is human readable.This is done in our CacheConfiguration with@Autowiredpublic...
View ArticleHow to get the session ID returned by cookie with spring-session-data-redis
When managing sessions using spring-session-data-redis, I think the session ID is returned in a cookie named SESSION.(FYI:https://spring.pleiades.io/spring-session/reference/guides/boot-redis.html)I...
View ArticleCannot serialize (Spring Boot)
I was developing a simple application to learn redis caching. Until I add redis as a caching mechanism on spring boot project the API's works fine. REST project you can say. Using Postman for calling...
View ArticleInaccessibleObjectException when creating cache with Redisson
I'm trying to get Redisson set up to use for bucket4j with my spring boot 2.7.3 application running on JVM 17. For now, I'm using a unit test to get everything working at some reasonable level but...
View ArticlePut data with Redisson and Get with Jedis
I am new to Redis and have a scenario to put data to Redis using Redisson and get using Jedis (and vice versa). The data I am trying to maintain is Map<String, String>.For this I am using HGET...
View ArticleHow to improve performance of Redis when used as in memory database to store...
We have a spring boot application that waits for asynchronous data from multiple server.The spring boot application listens to these asynchronous resposes from mulitple servers and process it store it...
View ArticleHow To use kafka consumers and producers for the scenario given below?
i have just started learning kafka.i want to use kafka for the following scenario, i have 35 customers,one customer data will be coming in to producer and it will be being consumedand only 10 records...
View ArticleIs there a way in Spring Boot @Cacheable to check against multiple keys
I am learning to implement cache and I have a situation where I am forming cache value by concatenating startTimestamp and endTimestamp something like the below:@Cacheable(value = "cacheKey", key =...
View ArticleRedisson fails to connect with SSL, Lettuce does
We're trying to secure our ElastiCache/Redis connection with SSL. Part of this is an IT test, against a SSL secured Redis docker container. The container has all necessary certificate and key files,...
View Articlejava jedis (redis) cannot connect
I'm trying to connect to Redis using Jedis in my java application. I'm instantiating a JedisPool object, and when I get the resource, it throws an exception saying it cannot return the resource. What...
View Article