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

feat: Allow JDBC connection to configure direct access#2116

Merged
olavloite merged 2 commits intomainfrom
support_direct_path
Jun 27, 2025
Merged

feat: Allow JDBC connection to configure direct access#2116
olavloite merged 2 commits intomainfrom
support_direct_path

Conversation

@sakthivelmanii
Copy link
Copy Markdown
Contributor

@sakthivelmanii sakthivelmanii commented Jun 27, 2025

Description:

Directpath allows GCP VM to connect to Spanner directly instead of going through Google Public frontend. It reduces the latency of each request, as each request flows to Spanner directly.

In JDBC connection URL/properties, customers can set enableDirectAccess=true to enable DirectPath. For non-GCP VM workloads, gRPC will automatically fall back to the standard network path.

@sakthivelmanii sakthivelmanii requested review from a team June 27, 2025 10:55
@product-auto-label product-auto-label Bot added size: xs Pull request size is extra small. api: spanner Issues related to the googleapis/java-spanner-jdbc API. labels Jun 27, 2025
@sakthivelmanii sakthivelmanii changed the title feat: Allow JDBC connection to configiue direct access feat: Allow JDBC connection to configure direct access Jun 27, 2025
@product-auto-label product-auto-label Bot added size: l Pull request size is large. and removed size: xs Pull request size is extra small. labels Jun 27, 2025
@olavloite olavloite merged commit d72242a into main Jun 27, 2025
26 checks passed
@olavloite olavloite deleted the support_direct_path branch June 27, 2025 13:37
lqiu96 pushed a commit that referenced this pull request Jul 16, 2025
* feat: Allow JDBC connection to configiue direct access

* test: update SQL script tests to allow zero for timeouts

---------

Co-authored-by: Knut Olav Løite <koloite@gmail.com>
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/java-spanner-jdbc API. size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants