How to Construct a Timebucket key for 2 hour window in REDIS
I am writing a throttling logic where i need to throttle requests of a user if the total number of requests for that USERID reaches a threshold of 200 within a 2 hour time window(sliding window).I need...
View ArticleKeploy integration with springboot application
I am trying to integrate Keploy with spring boot application. Our application uses Redis, mongo, Rabbit MQ, Liquibase. I am using keploy version 1.1.5 and able to start the application. But when I am...
View ArticleHow to create an internal communication with redis
I just created an instance of Jedis (Redis for Java) and connected to my redis server.My backend should be able to run more than once so for example the user-cache must be invalidated if a user becomes...
View ArticleHow to implement priority queue with redis
Now I have such a requirement, publish tasks to the task queue, and then take tasks from the task queue one by one and execute them. When the tasks are taken from the queue, they are taken according to...
View Articlehow to create new connection with redis on each request with username and...
I am using spring data redis to connect to standalone redis. I am using lettuceconnectionfactory to create initial connection with redis with default user but after connection has been established I...
View ArticleLettuce creates a new connection to redis before every operation
I'm using lettuce as my connectionFactory in a spring-boot application to connect to redis. It creates a new connection every time before an operation. Checked with the MONITOR command and profiler,...
View ArticleJava Spring Boot Redis – How to know when is the Entity updated so i can...
I'm new to redis, this might be a basic question.I use @Cacheable() and @CacheEvict() annotation. When the user gets updated, and if i fetch the user by id, it fetches the cached (outdated) data. Of...
View Articleembeded redis server in spring boot connection refused issue
I am trying to test redis server works in a test code.So I made a Redis test code like below@Testvoid saveToken(){ MofMember mofM = new MofMember("123", "123", "123@123.com", "Lee", "lelele", "male",...
View ArticleSpring boot 3 migration : Spring data redis in (spring boot 3)...
I have a project which uses spring boot which uses spring-boot-starter-data-redis to manage distributed session, which was running fine.I was able to migrate to spring boot 3 for the above one, when I...
View Articlerequired a bean of type...
I have a project which uses spring boot which uses spring-boot-starter-data-redis to manage distributed session, which was running fine.I tried to migrate to spring boot 3, i was getting the below...
View ArticleHow to make only one consumer for redis message listener in spring boot 3 and...
I am using spring boot 3 with spring data redis with functionality like this example example . My solution is deployed in kubernetes cluster in multi pods configuration. I am producing a message from 1...
View ArticleRedis over socks proxy
I'm using a java application through following socks proxy:-DsocksProxyHost=localhost-DsocksProxyPort=1337It's works partially, it connects to MySQL database successfully, but doesn't connect to...
View ArticleHow to replace subscribe() in RBatchReactive.execute().subscribe()
Given below is a piece of Java Micronaut code I am using for removing entries from redis. But this code does not remove entries from redis. If I use batch.execute().subscribe(); then it is working, but...
View ArticleWhy my Spring Boot Can not find redis cache name...?
First of all, sorry for my poor english...I have some problems with my spring boot application.I want to apply redis cache in my specific method. So I created CacheConfig and coded...
View ArticleRedis connection is not being released back to the pool
private static StringRedisTemplate stringRedisTemplate = null;private static JedisConnectionFactory connectionFactory = null; try { RedisSentinelConfiguration sentinelConfig; JedisPoolConfig poolConf =...
View ArticleERR This instance has cluster support disabled
I am trying to connect to cluster Redis with a valid URL and port I got this error:Caused by: io.lettuce.core.RedisCommandExecutionException: ERR This instance has cluster support disabled at...
View ArticleI upgraded spring boot to 3.1.1 version and I get this error from Redis...
I recently upgraded my spring boot project to version 3.1.1, I configured the Redis like the following:@Beanpublic ReactiveRedisConnectionFactory redisFirstConnectionFactory() { var redisConf = new...
View ArticleWhy am I getting "NOAUTH Authentication required" with Spring Boot?
I have a simple redis server running with a password. I want to talk with it from my spring boot app. I look here and see there is a spring.redis.password so my application-local.yml (running with...
View ArticleIs there a way to handle redis timeouts and not to fail the API if redis is...
For my API , I am using redis cache , sometimes while calling redis we get exceptions like timeout because of which the API fails even though the data is present in redis and in database.Is there any...
View ArticleSpring data specify datasource for repository
I have a few spring data repositories for redis.We are in middle of transition to new redis server. To make it smooth, I need to write data to the old and new redises simultaneously.So I need to have...
View Article