Embedded Redis for Spring Boot
I run my Integration Test cases with Spring Boot with the help of my local Redis server on my machine.But I want an embedded Redis server which is not dependent on any server and can run on any...
View Articlehow to notify the main thread when Redisson failed to renew a lock?
In the implementation of the watchdog in Redisson, if the renewal fails, it will just release the lock and do nothing:That means the main thread doesn't know if it has lost the lock and will continue...
View ArticleConnection refused: localhost/127.0.0.1:6379 (Redis) Spring boot with docker...
I'm trying to dockerize a project that uses Redis. I have a spring boot application that uses Redis and wants to connect to it but it can't and getting below...
View ArticleLua script converts empty array to object
Lua script converts empty array as an object. How to avoid conversion.test.lualocal json_str = '{\"items\":[],\"properties\":{}}'return cjson.encode(cjson.decode(json_str))Outputredis-cli --eval...
View ArticleCould not get a resource from the pool(SocketTimeoutException:)
I'm running multiple worker threads(around 10) to access the data from the redis Q.For the i'm using infinte timeout for Jedis Client. Jedis jedis =...
View ArticleJava spring boot redis, publish within the subscriber's onMessage method
When the subscriber/listener completes execution, i wish to publish a new event to redis within the onMessage method in the subscriber.RedisLettuceConfiguration@Configurationpublic class...
View ArticleShedlock skipped runs
I am using shedlock to implement a use-case of distributed locking.My app is running on 20 machines, and I want scheduler to be executed once in every 5 minutes in any 1 machine by using implicit...
View ArticleTransaction#select() replacement since Jedis version 4
We are in the process of upgrading the Jedis dependency for one of our services from version 3.7.0 to the latest version 5.0.0.In the process, we encountered an event that prevents us from using the...
View ArticleSpring boot session redis how I can reload SecurityContext auth user from redis
I have a problem with my personal project , I try to use Spring boot / redis to store all session and auth user . My application works fine except it clear all SercurityContext auth user when I restart...
View ArticleJava vertx + Redis + Azure cache for redis
I am trying to connect to Azure cache for redis (6.0) using Java vertx framework in ssl mode and it's not getting connected. I was able to connect using Java via setting verifypeer false based on...
View ArticleSpring boot native image can not serialize protobuf object
I have a method @Cacheable(value = USER_IDENTITIES_PROTO_CACHE) public UserIdentitiesResponseOuterClass.UserIdentitiesResponse findUserIdentitiesProto(UUID userId) {where...
View ArticleWhat does it mean when Lettuce Core logs indicate missing epoll and kqueue...
I am using the Lettuce Core library, a Java Redis SDK, and noticed the following logs during the client initialization:Dec 05, 2023 3:48:47 PM io.lettuce.core.EpollProvider <clinit>INFO: Starting...
View ArticleUsing static redis connections in multithreaded env in Java
I want to improve the performance of my Redis read/writes, by reusing the connection object. So, I am making it static in the class, and my get() and set() functions are using this static connection.In...
View ArticleUnifiedJedis' jsonSet consumes nearly 8 times more java heap memory to...
I am writing a 63.4 MB data file into Redis using UnifiedJedis' jsonSet. I observe that the data size in Redis remains the same, but during this operation, it consumes approximately 499,356 KB (almost...
View Article'enableDefaultTyping(com.fasterxml.jackson.databind.ObjectMapper.DefaultTypin...
What is the alternative of enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL) is deprecated in RedisConfig@Configurationpublic class RedisConfig { @Bean public RedisTemplate<String,...
View ArticleSpring Okta callback Set-Cookie SESSION twice
We use Okta for user authentication and authorization. As known, during the authorization process, two sessions are created—one on the Okta side and the other on the app side. Accordingly, if a regular...
View ArticleHow to do effective search in JedisCluster in a spring boot application
How to do effective search of json in JedisCluster in a spring boot applicationIf we have jedis cluster and i want to search on the basis of a key how can we do that effectively?Suppose I have an User...
View ArticleDefaultSerializer requires a Serializable payload but received an object of...
I want to cache the List in redis. Below is the service method for the same:-@Autowiredprivate RedisTemplate<String, Object> redisTemplate;@Cacheable(value = "notes", key = "#userId")public...
View ArticleUnable to connect redis pod in kubernetes Unable to connect to...
I have a requirement where my java app is connecting with redis serverThis is my redis config file apiVersion: v1 kind: ConfigMap metadata: name: redis-config data: SPRING_REDIS_HOST: redis-service #...
View ArticleSpring Boot Redis Subscription lost after one master Redis down and another...
I am facing an issue with the Subscription being lost after the Master node gets down and another slave node becomes a master that time it not getting Re-subscribed again.I have a cluster with 3 Redis...
View Article