I'm not sure what's causing this to not work. Everytime the code hits the initialization of the client, it stop working Is using Redisson not viable in a Lambda setup?
Main code for initializing redisson client:
public boolean itemExistInCache(String item) {
Config config = new Config();
config.useSingleServer().setAddress("127.0.0.1:6379");
// this one is not working
RedissonClient redissonClient = Redisson.create(config);
}
Setup
The Lambda containing the code above is triggered everytime there is a message registered in the SQS. The SQS message is subscribed to an SNS Topic.
SNS + SQS setup is created/initialized with localstack
- Lambda runs with aws sam local (pip3 install --user aws-sam-cli)
What I've tried and working so far
- using Jedis jedis = new Jedis() //using the same redis "localhost: 6379"