GoogleCloudPlatform / alloydb-python-connector

A Python library for connecting securely to your AlloyDB instances.
Apache License 2.0
28 stars 7 forks source link

Switch to generated `AlloyDBAdminAsyncClient` over `aiohttp.ClientSession` #221

Open jackwotherspoon opened 7 months ago

jackwotherspoon commented 7 months ago

AlloyDB has a generated package with support for an async client. Should look at switching to use it over the aiohttp.ClientSession that is currently being used to hit the admin API endpoints. Will want to investigate performance a bit before committing to this switch in case it degrades the performance.

AlloyDB Client package: https://pypi.org/project/google-cloud-alloydb/

Generated client: https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-alloydb/google/cloud/