-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Chaining custom commands in cluster mode #876
Conversation
It seems the scripts are sent with |
Yep, but it seems to work. |
@luin so what do you think? Is it good or bad? Should I change something or add some tests? |
@r3nat Thank you for the pull request, but I think there are some issues still under discussion. Above all, sending commands within a pipeline is aimed at improving the network performance. However, if we send custom commands with |
Pipelines are indeed aimed on that, but transactions are all about atomicity. Why it is possible to run BTW I've run benchmarks. After all I think custom commands is a great way of thinking about scripts - they become simple redis commands. |
@luin please take a look on message above |
Thank you for the benchmark script. It makes a lot of sense. I updated the script, added cases that sending commands without a pipeline (https://gist.github.com/luin/c8fd968f50c0a7abcdc79f0947274729). According to the results, not only should us send commands in a pipeline with For this pull request, I'm wondering if there's a better way to deal with constructor detection since there's an issue related to |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 7 days if no further activity occurs, but feel free to re-open a closed issue if needed. |
Any update on this ? |
@luin probably a fix for #536, please take a look