GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(spanner): add resource based routing implementation by larkee · Pull Request #10183 · googleapis/google-cloud-python

Conversation

@larkee

@larkee larkee commented Jan 23, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@larkee
larkee requested review from crwilcox, frankyn and tseaver as code owners January 23, 2020 07:21
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 23, 2020
@larkee
feat(spanner): implement resource routing
3d7581f
@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
skuruppu
skuruppu approved these changes Jan 28, 2020
View reviewed changes
Comment thread spanner/google/cloud/spanner_v1/database.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Jan 28, 2020
feat: add support for spanner client resource base routing googleapis/nodejs-spanner#780
Closed
feat(spanner) : add support for client resource base routing googleapis/google-cloud-ruby#4548
Closed
rhiro
rhiro approved these changes Jan 30, 2020
View reviewed changes
Comment thread spanner/google/cloud/spanner_v1/database.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@larkee
corrected warning message as per the PR comment
582aa1a
@larkee larkee changed the title Spanner resource routing feat(spanner): add resource based routing implementation Jan 31, 2020
@larkee @skuruppu
Update spanner/google/cloud/spanner_v1/database.py
e8ea71e
Add comma to warning message

Co-Authored-By: skuruppu <[email protected]>
@larkee
larkee merged commit 193a1dd into googleapis:master Jan 31, 2020
This was referenced Jan 31, 2020
[CHANGE ME] Re-generated automl to pick up changes in the API or client library generator. #10285
Closed
[CHANGE ME] Re-generated bigquery_datatransfer to pick up changes in the API or client library generator. #10286
Closed
[CHANGE ME] Re-generated bigtable to pick up changes in the API or client library generator. #10287
Closed
[CHANGE ME] Re-generated billingbudgets to pick up changes in the API or client library generator. #10288
Closed
[CHANGE ME] Re-generated cloudbuild to pick up changes in the API or client library generator. #10289
Closed
[CHANGE ME] Re-generated datacatalog to pick up changes in the API or client library generator. #10290
Closed
[CHANGE ME] Re-generated firestore to pick up changes in the API or client library generator. #10291
Closed
[CHANGE ME] Re-generated grafeas to pick up changes in the API or client library generator. #10292
Closed
[CHANGE ME] Re-generated iot to pick up changes in the API or client library generator. #10293
Closed
[CHANGE ME] Re-generated language to pick up changes in the API or client library generator. #10294
Closed
[CHANGE ME] Re-generated monitoring to pick up changes in the API or client library generator. #10295
Closed
[CHANGE ME] Re-generated oslogin to pick up changes in the API or client library generator. #10296
Closed
[CHANGE ME] Re-generated phishingprotection to pick up changes in the API or client library generator. #10297
Closed
[CHANGE ME] Re-generated spanner to pick up changes in the API or client library generator. #10298
Closed
[CHANGE ME] Re-generated speech to pick up changes in the API or client library generator. #10299
Closed
This was referenced Feb 2, 2020
[CHANGE ME] Re-generated translate to pick up changes in the API or client library generator. #10320
Closed
[CHANGE ME] Re-generated bigquery_datatransfer to pick up changes in the API or client library generator. #10328
Closed
[CHANGE ME] Re-generated dataproc to pick up changes in the API or client library generator. #10329
Closed
[CHANGE ME] Re-generated grafeas to pick up changes in the API or client library generator. #10330
Closed
[CHANGE ME] Re-generated kms to pick up changes in the API or client library generator. #10331
Closed
[CHANGE ME] Re-generated language to pick up changes in the API or client library generator. #10332
Closed
[CHANGE ME] Re-generated monitoring to pick up changes in the API or client library generator. #10333
Closed
[CHANGE ME] Re-generated oslogin to pick up changes in the API or client library generator. #10334
Closed
[CHANGE ME] Re-generated phishingprotection to pick up changes in the API or client library generator. #10335
Closed
[CHANGE ME] Re-generated tasks to pick up changes in the API or client library generator. #10336
Closed
[CHANGE ME] Re-generated dataproc to pick up changes in the API or client library generator. #10339
Closed
[CHANGE ME] Re-generated grafeas to pick up changes in the API or client library generator. #10340
Closed
[CHANGE ME] Re-generated iot to pick up changes in the API or client library generator. #10341
Closed
[CHANGE ME] Re-generated irm to pick up changes in the API or client library generator. #10342
Closed
[CHANGE ME] Re-generated kms to pick up changes in the API or client library generator. #10343
Closed
[CHANGE ME] Re-generated language to pick up changes in the API or client library generator. #10344
Closed
[CHANGE ME] Re-generated monitoring to pick up changes in the API or client library generator. #10345
Closed
[CHANGE ME] Re-generated dataproc to pick up changes in the API or client library generator. #10349
Closed
[CHANGE ME] Re-generated grafeas to pick up changes in the API or client library generator. #10350
Closed
[CHANGE ME] Re-generated irm to pick up changes in the API or client library generator. #10351
Closed
[CHANGE ME] Re-generated oslogin to pick up changes in the API or client library generator. #10352
Closed
[CHANGE ME] Re-generated phishingprotection to pick up changes in the API or client library generator. #10353
Closed
[CHANGE ME] Re-generated tasks to pick up changes in the API or client library generator. #10354
Closed
[CHANGE ME] Re-generated asset to pick up changes in the API or client library generator. #10359
Closed
[CHANGE ME] Re-generated grafeas to pick up changes in the API or client library generator. #10360
Closed
[CHANGE ME] Re-generated language to pick up changes in the API or client library generator. #10361
Closed
[CHANGE ME] Re-generated oslogin to pick up changes in the API or client library generator. #10362
Closed
[CHANGE ME] Re-generated recommender to pick up changes in the API or client library generator. #10363
Closed
[CHANGE ME] Re-generated tasks to pick up changes in the API or client library generator. #10364
Closed
parthea pushed a commit that referenced this pull request Mar 9, 2026
@larkee @skuruppu
feat(spanner): add resource based routing implementation (#10183)
f9e2a7c
* 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 <[email protected]>

Co-authored-by: skuruppu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@crwilcox crwilcox Awaiting requested review from crwilcox
@frankyn frankyn Awaiting requested review from frankyn
@tseaver tseaver Awaiting requested review from tseaver
2 more reviewers
@skuruppu skuruppu skuruppu approved these changes
@rhiro rhiro rhiro approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

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

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@larkee @skuruppu @rhiro @plamut @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.