4

Im currently using Redis Cluster Mode with 3 master instances, i'm using Jedis(Java client) in listening server which every data received i create a new thread then the thread make an update in redis.

My question is how can i use Redis Cluster instance in multiple thread with pool configuration.

salah eddine
  • 101
  • 1
  • 10

1 Answers1

11

JedisCluster is thread-safe. It contains JedisPool for each node internally, so you don't need to worry about dealing JedisCluster instance with multithread.

Jungtaek Lim
  • 1,638
  • 1
  • 12
  • 20