Pubsub pipeline #3157
Answered
by
sazzad16
PedroMPagani
asked this question in
Q&A
Pubsub pipeline
#3157
-
I'm just wondering one thing, if I use pipelines for pubsub (even tho I'm doing 1 call each time), would I have to wait for the response of the redis server? try(Jedis jedis = getResource()){
jedis.publish(...); // waits for the complete response of the redis server?
}
try(Jedis jedis = getSoruce()){
jedis.pipelined()
// publish and sync here
} Would the pipeline on pubsubs be a fire and forget? |
Beta Was this translation helpful? Give feedback.
Answered by
sazzad16
Oct 4, 2022
Replies: 1 comment 3 replies
-
Yes.
Not exactly. Note: You must not use same connection for subscribe and pipeline at the same time. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
PedroMPagani
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes.
Not exactly.
Note: You must not use same connection for subscribe and pipeline at the same time.