googleapis / googleapis/google-cloud-python

Add gRPC Channel Pools

未关闭
#16,404 1 条评论 0 个 reaction 已指派 1 人 已被 @daniel-sanche 认领 在 GitHub 查看
priority: p3 type: feature request
主要语言
Python
星标
5.4k
派生
1.8k
平均合并
3 天 4 小时
30 天内合并 PR
122

描述

Individual gRPC channels are limited to [100 concurrent streams](https://cloud.google.com/bigtable/docs/connection-pools#how_connection_pools_work). This puts a cap on max throughput, which may be run up against in an asyncio application. One way to get around this is to maintain a pool of channels, and rotate requests between them.

This has been implemented in gapic in some languages (example: [go](https://github.com/googleapis/gapic-generator-go/blob/34124f14cdc18208b3bfcdf6602b3c8b25f9d21a/internal/gengapic/gengrpc.go#L268)), but not Python.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。