python3 async
#2620
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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