GoogleCloudPlatform / alloydb-python-connector

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

Add support for lazy certificate refresh #298

Closed jackwotherspoon closed 2 weeks ago

jackwotherspoon commented 2 months ago

In serverless environments, when the CPU is throttled, the Python Connector will sometimes fail to refresh the certificate and time out.

This is a feature request to allow callers to opt-in to a lazy refresh strategy, where no background tasks run and the cert is refreshed as needed.

Related to #297