I’m trying to use the Couchbase Golang SDK at work to connect to our enterprise cluster. I’m trying to leverage concurrency to execute queries simultaneously against the cluster.
However I’m facing a blocker. It seems that there are no options to configure proxy connections through the SDK. At our company, to connect to the cluster, we must first establish a socks5 connection with a ssh jumpserver.
I was trying to find out the reason why there aren’t any configuration options in the SDK, but couldn’t find any official reasons from Couchbase.
Can someone tell why is the SDK like so?
Also, if there are any alternatives to this, please let me know.
Thank you for the resource.
I haven’t made it work. Would you be able to answer to this simple example?
For example, if the proxy is forwarding the requesting the results through the URL socks5h://localhost:8080, that would be the alternative address to use?
I gave the wrong answer There is no proxy support in the SDKs. Alternate Adresses is if there is a load balancer or NAT, where the external address used by the client are different than the addresses of the nodes.
The reason there isn’t proxy support is because some of the connections are couchbase memcache protocol, which does not have proxy support.