Do I must use couchbase://?


#1

Hi,

When connecting to couchbase server, should I use couchbase:// or http:// ? Does it even matter?


#2

The couchbase:// type connection string is preferred. For the most part, http will automatically try another type of bootstrap, but it’s better in this case to be clear about what you’d like.


#3

Here you can find how actually schema handled in PHP and all other libraries which use libcouchbase under the cover

So it does matter, because the schema, and the port number which actually selected by it, determines the way how the cluster configuration will be retrieved from the server. HTTP in particular will select 8091 and configuration will be delivered via chunked HTTP connection, COUCHBASE will use binary protocol and more preferred.