Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Browsing all 2203 articles
Browse latest View live

Getting Connection refused from redis cloud spring boot integration

I am getting below errororg.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis] with root causejava.net.ConnectException: Connection refusedbelow is my...

View Article


Kafka Consumer and Producer related question >> how to make it run parallely

How can I utilize Apache Kafka to handle data streams from multiple customers concurrently, ensuring that 10 records from each customer are consumed in parallel, with one Tomcat server acting as the...

View Article


Could not connect with Redis Sential by Lettuce in JAVA Spring Boot

I am attempting to connect with Redis Sentinel in JAVA Spring Boot using lettuce. But I am getting error NOAUTH Authentication required.exception message :: Unable to connect to Redis; nested exception...

View Article

Redis Pub/Sub migrate to kafka

Currently, I'm have a Redis pub/sub system ,in which i have 2 tomcats.where one tomcat will be the publisher and both will be the subscribers.my Use case :-i have 3 customers. i get data from all...

View Article

Error hitting API with redis - SerializationException

I am currently learning Redis and using API endpoints to store and retrieve data using redis datatypes. When I hit an API endpoint (/lrange/person) I get the following error messageServlet.service()...

View Article


How to get a message from a lettuce RedisPubSubListener in Java?

I'm just getting started with redis, lettuce and asynchronous coding at all. Now sadly I fail to find any examples on how to get the message from the listener into my program. Nor does the javadoc or...

View Article

WRONGTYPE exception when trying to set string in map (jedis)

I am getting a JedisDataException when trying to set a string as a value, and I can't seem to figure out where I am doing a mistake, if I am doing one at all. The Jedis version is 2.9.0 (I believe it...

View Article

How do I get all the keys from a redis cache via Spring Boot with Spring Data...

I am trying to get the entries in a Spring Boot Cache backed by Redis How do I get all the keys from a redis cache via Spring Boot? uses 1.x of Spring-Data-Redis and the current version uses...

View Article


Integration of AWS IAM and spring-session-data-redis

Got an Spring Boot Project which uses spring-session-data-redis.Locally everything works out of the box. (localhost:6397)On the "upper" stages we are using Redis in AWS with one...

View Article


Issue with Redis connection String::Illegal character in scheme name at index...

I have 2 java services trying to connect to redis. The actual endpoint configured is"redis://redis.test.internal:6379". One of the java service seems to have issue understanding this. It keeps giving...

View Article

Integrating Redis for Session Management in Spring MVC Application?

I have a Spring MVC application currently deployed on Tomcat 9, and I'm looking to enhance its session management by integrating Redis. The application currently uses Spring Session with Tomcat's...

View Article

Cannot add new subscription to an existing subscription in Spring data-redis,...

When I try to add a new channel to an existing subscription it fails:RedisConnection connection = connectionFactory.getConnection();connection.subscribe(istener, channels);// At this point subscription...

View Article

IllegalArgumentException "This REntity already exists" on persist REntity...

In our multi-threaded, multi-node environment when persisting REntity under load, sometimes (in approximately 0.5% persist method invocations) receive an IllegalArgumentException "This REntity already...

View Article


zunionstore optimization in redis ranking accross multiple keys

I am using code [1] to get rankings accross several keys [2] with values [3] in an app [4]. In short, those are rankings for several quizzes for specific clients. Each ranking can contain millions of...

View Article

Spring security AnonymousAuthenticationToken after upgrade

I have upgraded my spring boot application from 2.7.7 to 3.2.5 ( security version from 5.7.11 to 6.2.4) . I am using a custom sessionfixationprotectionstrategy and after authentication the session id...

View Article


Java : Vertx redis client enablePeriodicRefresh and refreshPeriod

I am using the Vert.x Redis client in my Java application and have been asked by the Redis team to add the following configuration parameters:enablePeriodicRefresh set to truerefreshPeriod set with a...

View Article

Redisson client exception Netty threads

I have my application deployed in openshift and also it uses Redis. White it works most of the time , I still face issue related to redisson which is intermittent. The error trace is as below while...

View Article


Image may be NSFW.
Clik here to view.

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 Article

Redis as the RPC registry

I am now designing Redis as one of the registration centers of the RPC framework I developed. Now I want to find some development ideas for the dynamic detecting online and offline node.If I want to...

View Article

Image may be NSFW.
Clik here to view.

Meet not eligible for auto-proxying when try to add cache interceptor

https://www.baeldung.com/spring-two-level-cacheI am implementing two levels of cache according to this article, however when I add the cache inteceptor bean it will give the above warning.import...

View Article
Browsing all 2203 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>