erlang client for couchbase
Is there a erlang client to connect to a password protected data bucket on the default port?
So far I tried memcached-client and I was only able to connect to different buckets on different ports but not to different buckets on the default port with the bucket/password combination.
Thanks, Rene
Hi Jan,
thank you for your feedback, I think that's just the way it is.
At least I'm able to connect to different buckets through different ports with the erlang memcached-client. However, for me it is not completely clear what the advantages/disadvantages are, using the default port versus using a dedicated port.
Best,
Rene
Hi Rene,
the idea is that the REST API can tell you about the state of the cluster, so the client can determine what buckets on what nodes to connect to in any given situation. A node might fail and you might failover to another node, or you rebalance some stuff and remove a node because you need less space. In either event, the client can be made a ware of any changes via the REST API's results. It'll tell the client which ip addresses and ports to connect to and the client doesn't have to stab in the dark as to which nodes are available and which are not.
Hope this helps :)
Cheers
Jan
--
Hi Jan,
yes, that helps, thank you. I just realised that I have to read through the whole manual to understand couchbase altogether. Up to now I just do some small programs with one node.
Best,
Rene
Hey Rene,
we currently do not have an Erlang client for Couchbase, I'm afraid. All you need on top of a memcached client though is a few HTTP calls to know about the cluster topology and to configure the memcached clients accordingly.
Cheers
Jan
--