Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

feat: Leader aware routing#1783

Merged
surbhigarg92 merged 16 commits intogoogleapis:mainfrom
surbhigarg92:lar
Apr 26, 2023
Merged

feat: Leader aware routing#1783
surbhigarg92 merged 16 commits intogoogleapis:mainfrom
surbhigarg92:lar

Conversation

@surbhigarg92
Copy link
Copy Markdown
Contributor

@surbhigarg92 surbhigarg92 commented Jan 31, 2023

Add x-goog-spanner-route-to-leader header to Spanner RPC contexts for RW/PDML transactions. The header is added to support leader-aware-routing feature, which aims at reducing cross-regional latency for RW/PDML transactions in a multi-region instance.

This feature is off by default and can be enabled by setting routeToLeaderEnabled as true while creating Spanner object.

const spanner = new Spanner({
    projectId: projectId,
    routeToLeaderEnabled: true,
  });

@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/nodejs-spanner API. labels Jan 31, 2023
@product-auto-label product-auto-label bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels Feb 1, 2023
@surbhigarg92 surbhigarg92 marked this pull request as ready for review February 21, 2023 10:40
@surbhigarg92 surbhigarg92 requested review from a team February 21, 2023 10:40
@surbhigarg92 surbhigarg92 added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Feb 27, 2023
@surbhigarg92 surbhigarg92 removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Apr 26, 2023
@surbhigarg92 surbhigarg92 added the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 26, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Apr 26, 2023
@surbhigarg92 surbhigarg92 merged commit 0703f41 into googleapis:main Apr 26, 2023
@surbhigarg92 surbhigarg92 deleted the lar branch October 23, 2023 11:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spanner Issues related to the googleapis/nodejs-spanner API. size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants