Jedis waitReplicas with pool connection

39 views
Skip to first unread message

Oscar Besga

unread,
Jun 22, 2021, 1:56:00 PM6/22/21
to Jedis
Hi all

I want to use the waitReplicas command to ensure data replication in some sensitive operations.

I've read the blog post http://antirez.com/news/66
but I have a doubt.

I use a connection pool with Jedis and
the command WAIT of wairReplicas, must be executed with the same borrowed connection from the pool which I used to write sensitive data 
or
if I get different connections from the pool, one writes the sesitive data and the other lauches the wairReplicas, will it work properly ?

Thanks

Sazzadul Hoque

unread,
Jun 30, 2021, 10:10:58 AM6/30/21
to jedis...@googlegroups.com
... I get different connections from the pool ...

These are different connections. So you should use the same borrowed connection.

--
You received this message because you are subscribed to the Google Groups "Jedis" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jedis_redis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jedis_redis/afecb420-b9e9-4825-9666-1328d5836bc8n%40googlegroups.com.

Oscar Besga

unread,
Aug 10, 2021, 6:09:39 AM8/10/21
to Jedis
Tks
Reply all
Reply to author
Forward
0 new messages