首页 > 解决方案 > thread wait for the connection to redis when use brpop/blpop

问题描述

Several threads are running with brpop involved, but it seems that each thread is waiting for another blocked thread's connection to redis(as the queue brpop operator on is mostly empty). I use StringRedisTemplate to connect and I want to know how can each thread using its own connection to redis and not affect each other.

标签: javamultithreadingredisclientredis-cluster

解决方案


推荐阅读