Accessing Local Couchbase without TCP connection?
If I have a Couchbase server on local without clustering,
is it possible to acccess to it straightaway from the application without making tcpip connection to the listening socket?
And just to be clear, there's a combination of REST for the cluster configuration, and memcached binary protocol over a separate TCP port for data access.
I was wondering if there are any way to use couchbase (in local) without TCP connections..
So the application could access the memory area directly
No, there is no shared memory based interface or anything like UNIX domain sockets. TCP sockets are the only supported interface.
This interface, however, definitely gives us tens or hundreds of thousands of operations/second on commodity hardware at latencies in tens of microseconds. Is this sufficient for you? Most TCP stacks optimize out a lot of the overhead when the client and server are on the same system.
Can I setup a couchbase local cluster so that I can write Junits against it?
not fully understanding your question. are you able to provide an example to clarify the question please.
but regardless of whether your Couchbase is a 1 node setup or multiple node setup, the client will connect using REST protocol to talk to the server. That higher layer protocol(REST) is on top of the traditional TCPIP networking layer. Even if you are going to connect on the loopback IP(i.e. localhost or 127.0.0.1), you'll still go thru TCPIP. But the actual data packets may never be put on the network cable - if that's what you are concerned about.