The Couchbase Java client allows Java applications to access a Couchbase cluster. It offers synchronous APIs as well as reactive and asynchronous equivalents to maximize flexibility and performance.
Scope scope = bucket.scope("inventory"); Collection collection = scope.collection("airport"); MutationResult result = collection.mutateIn( "airport_1254", Collections.singletonList(MutateInSpec.upsert("foo", "bar")), mutateInOptions().durability(DurabilityLevel.MAJORITY) );
Couchbase Java SDK 3.2
Dive right in with a quick install and Hello World.
Try out our Travel Sample Application.
Take a look at the Collections feature.
The documentation supplements the practical Howto docs with references and concept guides, for those who prefer a broader understanding before diving in and coding.
Leverage the new Couchbase Server Scopes and Collection features to build multi-tenant micro-service application. Integrate with Open Telemetry API to instrument telemetry data for your mission critical workloads that will make troubleshooting and debugging of your applications easier than ever. Add an additional layer of security and protect your sensitive workloads using our Client Side Field Level Encryption capability.
Introducing Distributed ACID Transactions from the Java SDK.
Those useful nuts-and-bolts guides to compatibility tables; release notes; contribution guide; and the migration guide for moving to the 3.x API.
For community help, visit the Couchbase forums. The Java SDK can be combined with many other projects in the broader Java and JVM ecosystem and beyond. This includes Spring Data and Spark.
Older SDK Versions
Documentation on older, unsupported versions of the SDK — that have reached end-of-life — can be found in the archive.