Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove pooled transport #1035

Merged
merged 16 commits into from
Nov 8, 2024
Merged

chore: remove pooled transport #1035

merged 16 commits into from
Nov 8, 2024

Conversation

daniel-sanche
Copy link
Contributor

@daniel-sanche daniel-sanche commented Nov 1, 2024

Remove grpc channel pooling functionality.

After some benchmarking, we found pooling provided little benefit in python, and it added significant complexity

Also removing the two submodules from this repo, as we no longer have any gapic changes that need to be pushed upstream

@product-auto-label product-auto-label bot added size: l Pull request size is large. api: bigtable Issues related to the googleapis/python-bigtable API. labels Nov 1, 2024
@daniel-sanche daniel-sanche changed the title [DRAFT] chore: remove pooled transport chore: remove pooled transport Nov 6, 2024
@daniel-sanche daniel-sanche marked this pull request as ready for review November 6, 2024 00:55
@daniel-sanche daniel-sanche requested review from a team as code owners November 6, 2024 00:55
transport_str = f"pooled_grpc_asyncio_{pool_size}"
transport = PooledBigtableGrpcAsyncIOTransport.with_fixed_size(pool_size)
BigtableClientMeta._transport_registry[transport_str] = transport
if "pool_size" in kwargs:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could someone create a client with BigtableDataClientAsync("project-id", 3)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we discussed this offline, but the __init__() function includes a *, meaning only key-word arguments are allowed

@daniel-sanche daniel-sanche added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 7, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 7, 2024
@daniel-sanche daniel-sanche merged commit 8b8a544 into main Nov 8, 2024
29 of 32 checks passed
@daniel-sanche daniel-sanche deleted the strip_pooled_transport branch November 8, 2024 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the googleapis/python-bigtable API. size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants