You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with the Python client library for Google APIs (google-api-python-client) and have a question about asynchronous support:
Current Availability: Is there an official asynchronous version of the client library available? I've noticed that the execute() method performs synchronous blocking calls, which can create performance bottlenecks in high-concurrency applications.
Future Roadmap: Are there any plans to introduce native asynchronous support (e.g., async/await syntax or gRPC-based implementations) in upcoming releases? This would be particularly beneficial for:
Microservices architectures
Real-time data pipelines
Serverless environments with strict cold-start requirements
Context:
While the community has developed async wrappers (e.g., using aiohttp or trio), official support would ensure:
Better long-term maintenance
Deeper integration with Google's authentication systems
Compatibility with future API changes
Use Case Example:
async def get_subscription():
return await service.async_purchases().subscriptionsv2().aget(
packageName="com.example.app",
token="purchase_token"
)
Thank you for considering this feature request. Official asynchronous support would significantly improve performance for latency-sensitive applications using Google APIs.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Google APIs Team,
I'm working with the Python client library for Google APIs (google-api-python-client) and have a question about asynchronous support:
Current Availability: Is there an official asynchronous version of the client library available? I've noticed that the execute() method performs synchronous blocking calls, which can create performance bottlenecks in high-concurrency applications.
Future Roadmap: Are there any plans to introduce native asynchronous support (e.g., async/await syntax or gRPC-based implementations) in upcoming releases? This would be particularly beneficial for:
Microservices architectures
Real-time data pipelines
Serverless environments with strict cold-start requirements
Context:
While the community has developed async wrappers (e.g., using aiohttp or trio), official support would ensure:
Better long-term maintenance
Deeper integration with Google's authentication systems
Compatibility with future API changes
Use Case Example:
python
Current synchronous pattern
response = service.purchases().subscriptionsv2().get(
packageName="com.example.app",
token="purchase_token"
).execute() # Blocks event loop
Desired async pattern
async def get_subscription():
return await service.async_purchases().subscriptionsv2().aget(
packageName="com.example.app",
token="purchase_token"
)
Thank you for considering this feature request. Official asynchronous support would significantly improve performance for latency-sensitive applications using Google APIs.
Beta Was this translation helpful? Give feedback.
All reactions