GoogleCloudPlatform/cloud-sql-go-connector

Add support for a lazy refresh

Closed this issue · 0 comments

Feature Description

When using the Connector in Cloud Run, the Connector's background refresh cannot run reliably when the CPU is throttled.

To resolve this situation, we should support a lazy refresh that retrieves a new certificate if no valid certificate is available and caches the result. No background goroutines should be involved.

Sample code

No response

Alternatives Considered

No response

Additional Details

No response