# Retry Pattern

> A design pattern that repeats an idempotent call after a transient failure, a bounded number of times with backoff.

Record: `architecture:retry-pattern`
Kind: pattern
Layer: [Correctness Core](https://banes-lab.com/records/layer/correctness-core.md)
Severity: contextual
Scope: network, IO, message handling
Canonical: https://banes-lab.com/ontology#architecture-retry-pattern

Listed in [Architecture principles](https://banes-lab.com/api/records/architecture.md), after [Fallback Pattern](https://banes-lab.com/records/architecture/fallback-pattern.md) and before [Timeout Pattern](https://banes-lab.com/records/architecture/timeout-pattern.md).

## Repair

- Refactored by: Add Exponential Backoff, Idempotency Key
- Detected by: retry loops without timeout/backoff
- Violated by: blind retry without backoff/idempotency
- Measured by: retry success rate, retry storm rate
- Enforced by: resilience libraries, policy checks

## Requires

- [Idempotency](https://banes-lab.com/records/architecture/idempotency.md)
- [Timeout](https://banes-lab.com/records/lexicon/timeout.md)
- [Backoff](https://banes-lab.com/records/lexicon/backoff.md)

## Reinforces

- [Fault Tolerance](https://banes-lab.com/records/architecture/fault-tolerance.md)

## Enables

- [Transient Failure Recovery](https://banes-lab.com/records/lexicon/transient-failure-recovery.md)

## Conflicts with

- [Non-Idempotent Operation](https://banes-lab.com/records/lexicon/non-idempotent-operation.md)

## In tension with

- [Load Amplification](https://banes-lab.com/records/lexicon/load-amplification.md)

## Tensions

- [Retry Pattern / Load Amplification](https://banes-lab.com/records/tension/load-amplification-retry-pattern.md)

## Severity

- [contextual](https://banes-lab.com/records/vocabulary/severity-contextual.md)

## Category

- [Error Handling / Resilience](https://banes-lab.com/records/architecture-category/error-handling-resilience.md)

## Linked from

- [Scale follows determinism](https://banes-lab.com/software-architecture/scale/scale-follows-determinism.md)
- [Error Handling / Resilience](https://banes-lab.com/ontology/principles/architecture-category-error-handling-resilience.md)
- [Transactions / State / Concurrency](https://banes-lab.com/ontology/principles/architecture-category-transactions-state-concurrency.md)
- [Error Handling / Resilience](https://banes-lab.com/ontology/lexicon/lexicon-category-error-handling-resilience.md)
- [Severity levels](https://banes-lab.com/ontology/schema/the-vocabulary-severity.md)
- [The resolutions](https://banes-lab.com/ontology/schema/the-resolutions.md)
