How to use multiple cluster connections efficiently

Hello,

I’m currently investigating how to best connect to multiple clusters. Judging from Multiple Clusters and Cluster Connection and https://docs.couchbase.com/c-sdk/current/howtos/managing-connections.html#connection-strings this doesn’t seem to be intended. Do I have to manage this on an application layer? What would you recommend?

Maybe to elaborate a bit - we are looking into improving the availability of our (legacy) services across a state. Meaning that a client shall use the fastest possible connection at a time. For that there a number of Couchbase cluster that can be connected to.
Our current approach is to try a test a connection with a fixed timeout and discard that connection from the comma separated list.
However we observed that only the first entry is really used by the SDK runtime.

Best regards
Magnus

a client shall use the fastest possible connection at a time. For that there a number of Couchbase cluster that can be connected to.

You’ll need to manage that yourself. An SDK cluster object only connects to one cluster. So you’ll need multiple SDK cluster objects.

1 Like

Thank you for the answer/confirmation. We need to rethink the way our connection are managed then.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.