KeyDB icon indicating copy to clipboard operation
KeyDB copied to clipboard

Trouble with using Lettuce readfrom options

Open redneckdiver opened this issue 2 years ago • 0 comments

We have a 2-node active-replica setup, but want to send all writes to one and reads to the other. This is not feasible in Lettuce because of this regex, that excludes "-" from being a possible character: https://github.com/lettuce-io/lettuce-core/blob/2ad862f5a1db860d57236c21c473cfd9aefebfea/src/main/java/io/lettuce/core/masterreplica/ReplicaTopologyProvider.java#L44

Then in the code that allows readfrom settings, only master slave, and replica are recognized. Is there any feasible way to split read and write traffic when using active-replica or multi-master?

redneckdiver avatar Jun 26 '23 17:06 redneckdiver