-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Support CSC(client-side caching) on broadcasting mode #4057
base: master
Are you sure you want to change the base?
Conversation
…t_mode # Conflicts: # src/main/java/redis/clients/jedis/DefaultJedisClientConfig.java # src/main/java/redis/clients/jedis/JedisPooled.java
Hi~ @sazzad16, could you please help me see if this is possible when you have time? |
@wp973 Thank you for your consideration and effort in improving Jedis. Firstly and importantly, if I am not mistaken, this PR implements the "Two connections mode" mentioned here. At this moment, we are not considering that approach to include in Jedis. Secondly, the implementation in this PR does not seem to easily expandable to cluster mode (JedisCluster). This is one of our key considerations. So, we may not consider this PR for the time being. Please don't be discouraged. We hope you will continue to help/suggest improving Jedis. |
@sazzad16 Thank you very much for your reply.
This PR implements the broadcast mode, not the two connections mode. The command used is: CLIENT TRACKING ON BCAST PREFIX xxx |
@wp973 Got it. However, whatever I said before are still mostly applicable. So please don't consider following as my review but here are a few hints:
|
@sazzad16 This is very helpful for me, thanks! I will continue to improve this pr. |
Hi, I added support for broadcast mode tracking based on the current csc implementation.
Could you please help me see if this is possible?
Thanks~
Design Schematic:
code example: