JedisPool max connections - possible and optimal

1,063 views
Skip to first unread message

raja

unread,
May 11, 2011, 6:29:26 AM5/11/11
to Jedis
Hi,
Am using JedisPool in my multi-threaded app with 200 threads. I'd
like to know how many concurrent connections will be optimal for Redis
with Jedis in general. Also, what is the maximum concurrent
connections possible?

Thanks.

Jonathan Leibiusky

unread,
May 11, 2011, 12:13:29 PM5/11/11
to jedis...@googlegroups.com
Hi! It is hard to answer this question.
Regard Jedis, you don't have any limit in Jedis and it won't become any suboptimal to have a lot of concurrent operations as Jedis just uses a socket per thread. The only limitation there is how many threads your client app can handle.
About Redis. It is also hard to answer. Redis is not multithreaded, which means it can only process one command at a time. So concurrency there us more about avoiding networking waits in my experience.

I had applications that used to send to redis more than 64k commands / second, using Jedis. And you can achieve even more than that.

I don't think this answers your question :)

Jonathan
Reply all
Reply to author
Forward
0 new messages