Skip to content

feat(spanner): add resource based routing implementation#10183

Merged
larkee merged 3 commits intogoogleapis:masterfrom
larkee:spanner-resource-routing
Jan 31, 2020
Merged

feat(spanner): add resource based routing implementation#10183
larkee merged 3 commits intogoogleapis:masterfrom
larkee:spanner-resource-routing

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
parthea pushed a commit that referenced this pull request Mar 9, 2026
* feat(spanner): implement resource routing

* corrected warning message as per the PR comment

* Update spanner/google/cloud/spanner_v1/database.py

Add comma to warning message

Co-Authored-By: skuruppu <skuruppu@google.com>

Co-authored-by: skuruppu <skuruppu@google.com>
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