Skip to content

perf(spanner): add gRPC channel pooling#5491

Open
olavloite wants to merge 3 commits intogoogleapis:mainfrom
olavloite:spanner-channel-pool
Open

perf(spanner): add gRPC channel pooling#5491
olavloite wants to merge 3 commits intogoogleapis:mainfrom
olavloite:spanner-channel-pool

Conversation

@olavloite
Copy link
Copy Markdown
Contributor

Applications that use Spanner for high throughput often need more than one gRPC channel in order to achieve the best possible performance. Having more than one channel both increases the number of concurrent streams that an application can have open at any time (the limit is 100 per gRPC channel), and distributes the load that is generated by the application across multiple Spanner frontends.

See also go/spanner-rust-channel-pool

Applications that use Spanner for high throughput often need more than one
gRPC channel in order to achieve the best possible performance. Having more
than one channel both increases the number of concurrent streams that an
application can have open at any time (the limit is 100 per gRPC channel),
and distributes the load that is generated by the application across
multiple Spanner frontends.
@olavloite olavloite requested review from a team as code owners April 22, 2026 08:17
@product-auto-label product-auto-label Bot added the api: spanner Issues related to the Spanner API. label Apr 22, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 22, 2026

Codecov Report

❌ Patch coverage is 97.59450% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.76%. Comparing base (e199cf6) to head (cae9228).

Files with missing lines Patch % Lines
src/spanner/src/client.rs 95.17% 7 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             main    #5491    +/-   ##
========================================
  Coverage   97.76%   97.76%            
========================================
  Files         221      221            
  Lines       51115    51303   +188     
========================================
+ Hits        49973    50158   +185     
- Misses       1142     1145     +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread src/spanner/src/client.rs
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants