Skip to Main Content
Lightning Talk Intermediate CC-BY-SA 4.0 First Talk

Your AI Agent Is a Distributed System. Build It Like One.

Proposal status is Rejected
Rahulrr
Rahulrr
Session Description

Prototyping an AI agent is easy. Running one in production is not. Once an agent does real work chaining LLM calls, waiting on flaky APIs, running for minutes or hours it's a stateful distributed system, and it fails in distributed-system ways:

  1. The worker process crashes or gets redeployed mid-task
  2. An LLM call hits a rate limit or times out
  3. The run needs to pause for a human, then resume

A run that's 80% done is suddenly gone, and you're restarting it by hand or burning tokens re-running everything.

Why "just add retries" isn't enough

A retry loop protects a single call inside a process that's still alive. It does nothing when the process itself dies. What you actually need is for the whole workflow to survive a crash and resume where it left off — a guarantee called durable execution.

What Temporal does

Temporal is an open-source workflow engine built on two ideas:

  1. Event History — every step is recorded as an event in a durable log on the server, not held in process memory. Each LLM call and tool call becomes a persisted event.
  2. Replay — on restart, Temporal re-runs your code against that log, skips already-completed activities (reusing saved results instead of re-calling the LLM), and resumes from the exact point of failure. You describe what should happen; the engine handles how it survives failure.

This is battle-tested infrastructure, not a toy

Think of it like a game's autosave: power cuts mid-level, you respawn at the last checkpoint with your inventory intact — you don't replay the whole game.

Netflix runs their Spinnaker deploy platform on this. Their old system kept state in memory, so a crash mid-operation lost the deployment. After moving to Temporal, transient deployment failures dropped from 4% to 0.0001% — and they deleted years of homegrown retry logic.

That same durable-execution foundation now underpins production AI: OpenAI co-built an official Agents SDK integration on it, and Codex and Replit's agent run on it.

The live demo

I'll run an agent through a multi-step task (research → summarise → verify → report), kill the worker mid-run on stage, restart it, and show it resume at the exact next step — no repeated LLM calls, no manual restart.


Key Takeaways

The difference between retrying a call and durably executing a whole workflow and why agents need the second

  1. How Event History + Replay recover a crashed run under the hood
  2. A live crash-and-resume demo, not just slides
  3. Runs fully local, no API keys or cloud accounts needed to follow along
  4. A starting SDK + files to try it yourself the same day

References

Session Categories

Technology architecture
Engineering practice - productivity, debugging
Talk License: CC-BY-SA 4.0

Which track are you applying for?

Main track

Speakers

Rahul RR
Rahul RR Student Intern | Maersk

I'm a Student Intern at Maersk, student at Kalvium, and pursuing a BS in Data Science at IIT Madras. I work on AI agents and backend systems, and I'm drawn to the unglamorous infrastructure problems that decide whether software actually holds up in the real world. I'm deeply passionate about FOSS and contribute to open source through Hacktoberfest.