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

chore: remove pooled transport#1035

Merged
daniel-sanche merged 16 commits into
mainfrom
strip_pooled_transport
Nov 8, 2024
Merged

chore: remove pooled transport#1035
daniel-sanche merged 16 commits into
mainfrom
strip_pooled_transport

Conversation

@daniel-sanche

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

Copy link
Copy Markdown
Contributor

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 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
Copy Markdown
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
Copy Markdown
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
@daniel-sanche daniel-sanche deleted the strip_pooled_transport branch November 8, 2024 18:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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