java-driver icon indicating copy to clipboard operation
java-driver copied to clipboard

3.x: Implement lazy replica shuffling

Open dkropachev opened this issue 9 months ago • 0 comments

It is followup for: https://github.com/scylladb/java-driver/pull/427 According to https://github.com/scylladb/cassandra-stress/issues/38#issuecomment-2621495909 there is still difference between Shuffled and not shuffled replicas, which made me think that array shuffling operations are very expensive.

Solution to that would be lazy shuffling, when original replica list is preserved as is while next item is being randomizes only when it is needed. We need to do that and see if there is performance difference.

dkropachev avatar Feb 18 '25 20:02 dkropachev