Skip to content

feat(backoff)!: add configurable jitter modes - #283

Merged
thomhurst merged 4 commits into
mainfrom
issue-203-jitter
Aug 25, 2026
Merged

feat(backoff)!: add configurable jitter modes#283
thomhurst merged 4 commits into
mainfrom
issue-203-jitter

Conversation

@thomhurst

@thomhurst thomhurst commented Aug 25, 2026

Copy link
Copy Markdown
Owner

Summary: replaces Boolean exponential jitter with explicit None, Equal, Full, and Decorrelated modes; adds jitter to constant and linear backoff; keeps decorrelated state execution-local and exposes a previous-delay overload for direct consumers; removes the hidden one-day cap; updates DI, HTTP configuration, Testing descriptors, docs, tests, and API ledgers. Legacy Boolean configuration values remain accepted. Breaking change for 1.0: the public Backoff factory signatures and Jitter metadata now use the Jitter enum. Closes #203. Validation: Release solution build; core, Testing, .NET Standard fallback, and allocation tests on supported frameworks; docs structure, compiled snippets, and production site build.

Replace the boolean jitter switch with explicit modes and align built-in backoff caps with the runtime timer limit.
@coderabbitai

coderabbitai Bot commented Aug 25, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 25aad820-46e0-4277-bb7e-01385885145c


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fdaa98dd6c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/Kevlar/Strategies/Retry/RetryStrategy.cs Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a738c05655

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/Kevlar/PublicAPI.Unshipped.txt
Comment thread src/Kevlar.Extensions.DependencyInjection/KevlarServiceCollectionExtensions.cs Outdated
Comment thread src/Kevlar/Backoff.cs
Let direct callers carry the effective previous delay and keep legacy Boolean configuration aliases during the enum migration.
@thomhurst thomhurst changed the title feat(backoff): add configurable jitter modes feat(backoff)!: add configurable jitter modes Aug 25, 2026
@thomhurst
thomhurst merged commit 52511b7 into main Aug 25, 2026
10 checks passed
@thomhurst
thomhurst deleted the issue-203-jitter branch August 25, 2026 00:54
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.

refactor(backoff): replace Exponential(bool jitter) with a Jitter enum; document or remove the hidden 1-day cap

1 participant