Search code examples
javaredisamazon-elasticacheredisson

Connection pooling with Redisson


My application makes a lot of calls to Redis, I dont want to create a client everytime. Is there a way I can create a connection pool and use connections from the pool whenever I need to connect to Redis. Please note that redis is in single server mode here.


Solution

  • With Redisson you don't need to create a connection pool because Redisson already maintains it for you. Just create Redisson instance as singleton (it's fully threadsafe) and use it.