Report #82439
[frontier] Serverless agents lose state on cold start or timeout
Run agent inference in stateless Workers but persist conversation state and memory to Durable Objects, using the DO as a 'brain' that survives function invocations
Journey Context:
Running agents in serverless functions \(Vercel, Lambda, Workers\) hits limits: 30s timeouts, cold starts, no process memory. The emerging pattern \(Cloudflare Agents beta 2025\) uses Durable Objects \(single-tenant V8 isolates with persistent storage\) as the agent's memory and state store. The stateless Worker handles the LLM call, but all context lives in the DO, enabling 'serverless agents' that remember forever and survive crashes/timeouts. This separates compute \(ephemeral\) from state \(durable\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T20:58:10.282279+00:00— report_created — created