{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "ExponentialBackoff",
 "ref": "ExponentialBackoff#f5e5",
 "hash": "sema:ExponentialBackoff#mh:SHA-256:f5e5ff69408a272184da86cf5698f6675e9dfe2aa47917616a695e117602b828",
 "stub": "f5e5",
 "layer": "Infrastructure",
 "type": "Primitives",
 "summary": "Geometrically increasing capped retry delay",
 "mechanism": "A Backoff#9e59 delay policy whose unjittered delay grows geometrically across consecutive unsuccessful attempts: base_delay * multiplier^attempt_index. A configurable jitter factor may perturb the candidate delay to decorrelate concurrent attempts, after which the scheduled delay is clamped to max_delay. The caller defines retry eligibility, retry budget, and when the attempt sequence resets.",
 "invariants": [
  "Scheduled delay is greater than zero and does not exceed max_delay.",
  "Before jitter, delay is non-decreasing with attempt_index until max_delay is reached."
 ],
 "parameters": [
  {
   "name": "base_delay",
   "type": "Duration",
   "range": "> 0",
   "description": "Delay before the first subsequent attempt"
  },
  {
   "name": "multiplier",
   "type": "Float",
   "range": "(1, unbounded)",
   "description": "Geometric growth factor applied per unsuccessful attempt"
  },
  {
   "name": "max_delay",
   "type": "Duration",
   "range": "[base_delay, unbounded)",
   "description": "Upper bound applied after optional jitter"
  },
  {
   "name": "jitter_factor",
   "type": "Float",
   "range": "[0.0, 1.0]",
   "description": "Proportional randomization of the candidate delay"
  }
 ],
 "signature": [],
 "preconditions": [],
 "postconditions": [],
 "failure_modes": [
  "Synchronized retries when jitter is zero or correlated across callers.",
  "Excessive recovery delay when the multiplier or cap is too large.",
  "Retry amplification when callers use the delay policy without a retry budget."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "ExponentialBackoff",
 "builds_on": [
  {
   "alias": "backoff",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Backoff",
   "ref": "Backoff#9e59",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Backoff"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "Retry",
   "relation": "composes_with",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Retry"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/ExponentialBackoff",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/ExponentialBackoff.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
