You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.Connecting to Cloud Native Gateway, for Kubernetes or OpenShift
248
+
====
249
+
Couchbase's large number of ports across the URLs of many services can be proxied by using a `couchbase2://` endpoint as the connection string -- read more on the xref:howtos:managing-connections.adoc#cloud-native-gateway[Connections] page.
250
+
====
251
+
////
252
+
253
+
254
+
255
+
243
256
=== Add and Retrieve Documents
244
257
245
258
The Java SDK supports full integration with the xref:{version-server}@server:learn:data/scopes-and-collections.adoc[Collections] feature introduced in Couchbase Server 7.0.
Copy file name to clipboardExpand all lines: modules/howtos/pages/error-handling.adoc
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -466,3 +466,15 @@ Please note that we do not provide any stability guarantees on the names and val
466
466
| If already sent to a node contains the channel ID that can be used to correlate with the server logs.
467
467
468
468
|===
469
+
470
+
471
+
472
+
473
+
474
+
475
+
== Cloud Native Gateway
476
+
477
+
If you connect to the Kubernetes or OpenShift over our xref:howtos:managing-connections.adoc#cloud-native-gateway[CloudNative Gateway], using the new `couchbase2://` endpoints, there are a few changes in the error messages returned.
478
+
479
+
Some error codes are more generic -- in cases where the client would not be expected to need to take specific action -- but should cause no problem, unless you have written code looking at individual strings within the error messages.
Couchbase's next generation connection protocol, introduced in Go SDK 2.7 and a future release of Couchbase Autonomous Operator, can be enabled simply by changing the connection string to `couchbase2://` but there are a few differences to be aware of, described <<#limitations,below>>.
241
+
// Couchbase's next generation connection protocol, introduced in Go SDK 2.7 and Couchbase Autonomous Operator 2.6.1, can be enabled simply by changing the connection string to `couchbase2://` but there are a few differences to be aware of, described <<#limitations,below>>.
242
+
243
+
The protocol implements a gRPC-style interface between the SDK and Couchbase Server (in this case, only available in the Server running on Kubernetes or OpenShift, with a forthcoming release of xref:operator::overview.adoc[Couchbase Autonomous Operator].
244
+
245
+
246
+
247
+
=== Limitations
248
+
249
+
The protostellar protocol will not work with certain legacy features: MapReduce Views (a deprecated Service --
250
+
use xref:howtos:n1ql-queries-with-sdk.adoc[Query] instead) and
251
+
Memcached buckets (superseded by the improved xref:{server_version}@server:learn:buckets-memory-and-storage/buckets.adoc#bucket-types[Ephemeral Buckets]).
252
+
253
+
The following are not currently implemented over the `couchbase2://` protocol:
254
+
255
+
* Authentication by client certificate.
256
+
* Multi-document ACID transactions.
257
+
* Analytics service.
258
+
* Health Check.
259
+
260
+
There are some different behaviors seen with this protocol:
261
+
262
+
* Some config options are unsupported -- see the xref:ref:client-settings.adoc#cloud-native-gateway[Settings page].
263
+
* The SDK will poll the gRPC channels until they are in a good state, or return an error, or timeout while waiting -- in our standard protocol there is an option of setting `waitUntilReady()` for just certain services to become available.
264
+
* Some error codes are more generic -- in cases where the client would not be expected to need to take specific action -- but should cause no problem, unless you have written code looking at individual strings within the error messages.
265
+
* Although documents continue to be stored compressed by Couchbase Server, they will not be transmitted in compressed form (to and from the client) over the wire, using `couchbase2://`.
Copy file name to clipboardExpand all lines: modules/ref/pages/client-settings.adoc
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -680,3 +680,15 @@ This profile changes the default timeouts.
680
680
| `managementTimeout`
681
681
| 120s
682
682
|===
683
+
684
+
685
+
686
+
== Cloud Native Gateway
687
+
////
688
+
Using the xref:howtos:managing-connections.adoc#cloud-native-gateway[Cloud Native Gateway] protocol (to connect to Couchbase Server running on xref:operator::overview.adoc[Couchbase Autonomous Operator] 2.6.1 or newer) should not need any changes to config.
689
+
////
690
+
Some settings will be ignored when using the `couchbase2://` protocol -- and this will be logged at `WARNING` level.
0 commit comments