Skip to content

Conversation

@larkee
Copy link
Contributor

@larkee larkee commented Jan 23, 2020

Implement resource based routing.

When creating a SpannerClient, check for suggested endpoints.
If endpoints are returned, use the first one.
If no endpoints are returned, use default endpoint (either global endpoint or user-specified endpoint).

Endpoints are cached per instance on the Client.

This feature is disabled by default and is enabled by setting the environment variable to true.

To enable:
export GOOGLE_CLOUD_SPANNER_ENABLE_RESOURCE_BASED_ROUTING=true

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 23, 2020
@plamut plamut added the api: spanner Issues related to the Spanner API. label Jan 23, 2020
@skuruppu skuruppu requested a review from rhiro January 28, 2020 01:08
@larkee larkee changed the title Spanner resource routing feat(spanner): add resource based routing implementation Jan 31, 2020
Add comma to warning message

Co-Authored-By: skuruppu <skuruppu@google.com>
@larkee larkee merged commit 193a1dd into googleapis:master Jan 31, 2020
This was referenced Jan 31, 2020
This was referenced Feb 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the Spanner API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants