-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about idempotent #6
Comments
Every client is assigned to a single thread, so every command from a specific client is always dispatched to the cluster by the same thread, and since the connection to a single node of the cluster is thread-specific there should be no issues. |
@shenlongxing I wonder if Fabio's reply is satisfying for you, the fact that the thread is sticky from the POV of the client, and the ID system in the radix tree that orders everything. If it's ok we can close this one. |
I have read the source code of redis cluster proxy. And as far as I am concerned, there may be situations that idempotent is not guaranted.
The proxy uses threads pool (default 8) to receive and dispatch commands and since thread is chosen by round robin, the commands may not be executed in the exactly same order as the client sent due to threads connection error or something alike.
The text was updated successfully, but these errors were encountered: