Skip to content

Pipelining #2259

Answered by mp911de
petru-motrescu asked this question in Q&A
Discussion options

You must be logged in to vote

Lettuce uses pipelining as the general mode of operations, the client doesn't await the completion of a command before it sends the next one.

If you use the async API, then you can ensure that commands are issued immediately and serially without awaiting continuations/subscriptions/backpressure demand (in contrast to the Coroutines/reactive API).

A single connection will give you the best performance. There are other options (e.g. manual command flushing) but that approach requires a connection per process which seems to be more expensive than a single-connection approach.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by petru-motrescu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants