---
url: https://scruple.dev/rules/resources/require-retry-backoff-with-jitter.md
description: Require retry backoff with jitter.
---

# resources/require-retry-backoff-with-jitter

Require retry backoff with jitter.

## What it checks

Retry timing should combine progressively increasing delays with randomization rather than retrying immediately or at a fixed cadence.

## Rule metadata

* Package: `@scruple/resources`
* Category: Retries
* Tags: retry, backoff, jitter
* Default threshold: `plugin default`
* Minimum confidence: `plugin default`

## Examples

### Reported

```ts
await retry(request, { delayMs: 100 });
```

### Accepted

```ts
await retry(request, { delay: attempt => 2 ** attempt * 100 + Math.random() * 50 });
```
