Skip to content

Add retry helper with exponential backoff - #2

Open
drewjsttestlema wants to merge 1 commit into
masterfrom
drewjsttestlema-patch-1
Open

Add retry helper with exponential backoff#2
drewjsttestlema wants to merge 1 commit into
masterfrom
drewjsttestlema-patch-1

Conversation

@drewjsttestlema

Copy link
Copy Markdown
Owner

Standardize transient-error handling across the examples with a small retry.Do helper that retries an operation with exponential backoff — doubling the wait after each failure.

Why exponential over a fixed interval: a fixed retry interval hammers a struggling dependency at a constant rate; backoff sheds load as failures persist. Rejected pulling in a third-party retry library to keep the example dependency-free.

Standardize transient-error handling across the examples with a small
retry.Do helper that retries an operation with exponential backoff —
doubling the wait after each failure.

Why exponential over a fixed interval: a fixed retry interval hammers a
struggling dependency at a constant rate; backoff sheds load as failures
persist. Rejected pulling in a third-party retry library to keep the
example dependency-free.
@github-actions

Copy link
Copy Markdown

lema verify

Description check: 4 of 4 stated changes found

4 changes found

Important

This PR settles: Transient error retry policy for examples — The project will use a custom retry.Do helper with exponential backoff for handling transient errors in examples. This approach doubles the wait after each failure.

Sign in to review → · Not a decision — dismiss

Checked against: description · lema verify v1 · this repo: 1 / 50 free checks this month

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant