xetorthio/jedisque

Why we need to use more then one URI instance as the Jedisque instance initializes?

Opened this issue · 0 comments

In your README.md ,I saw these codes:
Jedisque q = new Jedisque(
new URI("disque://192.168.0.1:7711"),
new URI("disque://192.168.0.4:8822")
);
Forgive me for being a green hand.It's really hard for me that why you need to use more than one URI instances?If we use a cluster which is with more than three nodes , how about init the Jedisque instance "q" with just on URI instance?
Like this:
Jedisque q = new Jedisque(new URI("disque://192.168.0.4:8822"));

I have read some other blogs ,know that ,if we exec command "GETJOB" with some one node (now.let's call it 'Node A', there are three nodes in this cluster ,others is named 'Node B' and 'Node C' ) in the cluster ,the Node A will request other nodes with command "GETJOB" by itself automatically , as there is no msg what we need in Node A. So,in my oppinion, we needn't init a Jedisque with so many URI instance.
I think your profile Jedisque is as great as Jedis in the end.