A newer version of this documentation is available.

View Latest

Asynchronous Progamming Using the Go SDK with Couchbase Server

The Go SDK offers a synchronous blocking interface for single operations. You can also batch multiple operations using the Bucket.Do() interface. In addition to providing a batch methods for use within a single goroutine, the Go SDK is also designed to be highly performant when used across numerous goroutines, this allows you to start numerous asynchronous goroutines which can all perform operations on the same Bucket and Cluster objects.

Internally, the Go SDK is based upon the gocbcore package. The gocbcore interface is considered volatile but contains a callback-based API that does not block the application.