GoogleCloudPlatform / artifact-registry-apt-transport

Apache License 2.0
10 stars 17 forks source link

Perform GET requests using exponential backoff #19

Open PatrickDale opened 1 year ago

PatrickDale commented 1 year ago

Using exponential backoff when fetching packages would help reduce the chance of GCP quota related errors when reading from Artifact Registry APT repositories.

I believe an exponential backoff library could be used here: https://github.com/GoogleCloudPlatform/artifact-registry-apt-transport/blob/main/apt/method.go#L176.