Two Roads to Durable Agents: Replay vs. Snapshot — Eric Allam, Trigger.dev

AI Engineer · Beginner ·🤖 AI Agents & Automation ·3d ago
Replay-based durability — wrapping every step in a journal, replaying on recovery, requiring deterministic code — is how everyone makes agents durable today. It works until it doesn't: the journal grows with every turn, the structure starts constraining how you write code, and an agent that needs to run for hours starts looking less like a transaction and more like a session. This talk separates the problem in two: context durability (the append-only log of everything the LLM saw, which already fits in a database) and execution durability (the files, memory, and subprocesses that live in the compute layer, which don't). The answer to the second half isn't a smarter log — it's OS-level snapshot and restore. Eric Allam walks through how Trigger.dev built this on Firecracker microVMs, getting snapshots down to 14 megabytes compressed with sub-second save and hundred-millisecond restore times, and why IBM mainframes in 1966 got there first. Speaker info: - https://x.com/maverickdotdev - https://www.linkedin.com/in/eric-allam/ - https://github.com/ericallam
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related AI Lessons

Understanding Real-Time Customer Intent: The New Frontier for Retail AI Chatbots
Learn how retail AI chatbots can leverage real-time customer intent to drive sales and loyalty, and why it matters for modern retail
Medium · AI
Artificial Intelligence Is Not Replacing Humans - It’s Replacing Certain Behaviors
AI is replacing certain human behaviors, not humans themselves, and understanding this distinction is crucial for effective AI integration
Medium · AI
How I cut my LangChain agent's token costs by 93% with one import
Cut LangChain agent's token costs by 93% with a simple import and optimization technique
Dev.to · Mahika jadhav
5 Passive Income Streams Your AI Agent Can Run While You Sleep
Automate passive income streams with AI agents to earn money while you sleep, leveraging affiliate marketing, print-on-demand stores, and more
Dev.to AI
Up next
Introducing Interwhen: Steering reasoning agents with real-time verification
Microsoft Research
Watch →