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
Setting the transport options explicitly to `GrpcTransportOptions` will signal the client to use gRPC instead of HTTP when making calls to the server.
149
+
150
+
To revert back to the existing stable behavior and transport, simply remove the transport options line or replace it with `HttpTransportOptions`. Please note this will require an application rebuild and restart.
151
+
Example:
152
+
```java
153
+
// will default to existing HTTP transport behavior
Note: client instantiations that already use `setTransportOptions` with `HttpTransportOptions` will continue to have the same behavior. Only transports that are explicitly set to gRPC will change.
170
+
171
+
#### Verify Datastore Transport Options Type
172
+
To verify which type of TransportOptions you have successfully configured, you can use the below lines of code to compare transport options type:
There are new gRPC specific features available to use in this update.
183
+
184
+
##### Channel Pooling
185
+
To customize the number of channels your client uses, you can update the channel provider in the DatastoreOptions.
186
+
See [ChannelPoolSettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.grpc.ChannelPoolSettings) and [Performance Best Practices](https://grpc.io/docs/guides/performance/) for more information on channel pools and best practices for performance.
In this feature launch, the [Java Datastore client](https://github.com/googleapis/java-datastore) now offers gRPC as a transport layer option with experimental support. Using [gRPC connection pooling](https://grpc.io/docs/guides/performance/) enables distributing RPCs over multiple connections which may improve performance.
209
+
210
+
#### Download Instructions
211
+
Instructions:
212
+
1. Clone the grpc-experimental branch from GitHub:
0 commit comments