Multiple couchbase clusters connection with Springboot

I want to connect more than 1 couchbase clusters in my Springboot codebase using ReactiveCouchbaseSortingRepository. Can you please suggest how to do that?

Scenario:
Cluster A and cluster B. XDCR from A to B. Read from B and update data to A so that B will also have same modifications.

Couchbase version - 5.0.x
java version - 11
Springboot - org.springframework.cloud:spring-cloud-sleuth:2.2.0.RELEASE
couchbase client - com.couchbase.client:java-client:2.7.10

Hi Nitesh,

I can’t answer your question (tagging @mreiche for that), but I will suggest that if you’re planning a new deployment and your reason for having separate clusters is for performance/scalability, then having separate cluster for reads and writes probably doesn’t make sense for Couchbase. With two separate clusters, you lose the ability to immediately read your own writes, since XDCR is not instantaneous.

I suspect you’ll get better performance and have fewer development headaches if you use all of those computing resources to make a single Couchbase cluster.

Thanks,
David