-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS Redis Serverless Issue - won't connect to Spring Connection Factory #3029
Comments
|
Hi Mark, For AWS Serverless, do i need to use RedisStandAlone or RedisCluster? So, this block
or this block // configure Redis Standalone configuration for non-production
|
I don't know and even after an extensive search, I'm not able to find that out. Looking at the exception, I think it is Redis Cluster. |
Hmm, that is strange. It should be documented somewhere. I know AWS Serverless is growing in popularity. Ok, i will try both again tonight. I think yesterday I was just using Spring RedisStandalone. I will use SpringRedisCluster to see if it works (i.e. to ensure I don't get a PubSub error, if with the Spring annotation that should be turning PubSub off) Maybe I need to use SpringRedisMasterSlave (though I doubt it) |
Hi Mark, Touchwood, I can confirm that the below works for me for AWS Redis Serverless: Cluster to Serverless All I did was change the springDataProperties.redis.host from Also, So, it follows this configuration chain:
PubSub Errors If I see any pubsub errors (since AWS Serverless does not support them, I will let you know), but I shouldn't since I have this annotation. But 10 mins in, no pubsub errors
Full Spring Redis Connection Factory Code:
|
Great to hear you were able to solve your issue. |
Hi,
Whether I choose RedisStandalone or RedisClustered in Spring, with AWS Redis Serverless, I keep getting the folllowing errors.
AWS Redis Clustered works just fine, but I'd prefer to use AWS Redis Serverless if I can.
My clustered endpoint looks something like:
clustercfg.elasticache-redis.abcde.nva1.cache.amazonaws.com:6379
My serverless endpoint looks something like:
myapp-redis-serverless-abcde.serverless.nva1.cache.amazonaws.com:6379
Here is my Kotlin code:
AWS Redis Serverless - Standalone error
AWS Redis Serverless - Clustered error
The text was updated successfully, but these errors were encountered: