# Request lifetime is not durability

Principle `request-lifetime-is-not-durability`. Worker waitUntil has a shared post-response allowance; required work needs a durable marker and redrive.

Also searched as: waitUntil, request execution budget.

A bounded request pass and a durable recovery record solve different problems. On HTTP Workers, waitUntil extends execution for up to 30 seconds after response or disconnect; that allowance is shared.

Book basis: [B4](/bibliography#b4-release-it), [B6](/bibliography#b6-fundamentals-of-data-engineering).

## Failure it prevents

Three 20-second attempts plus delays need more time than the post-response allowance, so background delivery is cut off without recovery.

## Our Effect 4.0.5 reading

Use one deadline for the pass and cap every attempt at remaining time. Context.Reference can hold an intentional default budget, not a cached absolute deadline. Persist an undelivered marker for independent redrive.

Source: `packages/effect/src/Context.ts`, `packages/effect/src/Effect.ts`.

## How to check

Use a 25-second example budget. Cancel post-response work, then redrive the persisted marker with the same operation identity and prove duplicate safety. This is our proposed verification, not a quoted procedure.

Continue with [Timeouts bound waiting](/principles/timeouts-bound-waiting), [Retry needs idempotent effects](/principles/retry-needs-idempotency).

Connect this to [the existing rat-stack guidance](https://ratstack.sh/lore/concurrent-work-needs-an-owner).

Use [the durability skill](/skills/durability) for the full review. Return to [the durability index](/principles/durability).

## Skills
- [Durability starts with a recovery record](/principles/durability)

## Sources
- Nygard, Michael T. *Release It!: Design and Deploy Production-Ready Software*. Pragmatic Bookshelf, 2007. [Link](https://archive.org/details/releaseitdesignd0000nyga). ([b4-release-it](/bibliography#b4-release-it))
- Reis, Joe; Housley, Matt. *Fundamentals of Data Engineering*. O’Reilly. [Link](https://www.oreilly.com/library/view/fundamentals-of-data/9781098108298). ([b6-fundamentals-of-data-engineering](/bibliography#b6-fundamentals-of-data-engineering))

## References
- [Effect contributors. Effect 4.0.5. Context.ts](https://github.com/Effect-TS/effect/blob/7f524e25cfb49a71ac39b0f44278d08d40dda5de/packages/effect/src/Context.ts). Pinned source for our Effect mapping, not a claim from the book.
- [Effect contributors. Effect 4.0.5. Effect.ts](https://github.com/Effect-TS/effect/blob/7f524e25cfb49a71ac39b0f44278d08d40dda5de/packages/effect/src/Effect.ts). Pinned source for our Effect mapping, not a claim from the book.
- [Cloudflare Workers Context: waitUntil](https://developers.cloudflare.com/workers/runtime-apis/context/). HTTP-triggered waitUntil extends execution for up to 30 seconds after response or disconnect; calls share this allowance. This is a platform reference, not book lore.
