WhoBuilt

Events are the Wrong Abstraction for Your AI Agents

Jun 27, 2025· 15 min· 3.8K views·Watch on YouTube

Speaker

Mason Egger of Temporal.io explains at AI Engineer how durable execution can simplify building reliable AI agents by shifting attention from event plumbing to application logic.

Choose the right frame for agent systems

Egger compares geocentric and sun-centered models: both can be useful, depending on the question. He argues that AI agents are distributed systems, so familiar approaches to reliability still apply.

Event-driven systems add operational complexity

Egger sketches an agent architecture with cron jobs, a message bus, and a dead-letter queue, then asks how much of that supports the core application. He says event-driven designs can scatter business logic, obscure APIs, and create hard-to-debug state machines, race conditions, and queue failures. He distinguishes runtime independence from design-time coupling: changing an event can break services that depend on it.

Durable execution makes failures recoverable

Egger proposes durable execution as the center of an agent architecture. He describes systems that preserve state, resume after process or machine failures, and support long-running work, including a 30-day sleep. In his example, a workflow retries failed LLM calls and resumes after a crash, leaving developers to focus more on application logic.

Abstract event handling at the platform layer

Egger presents Temporal as an open-source, MIT-licensed durable execution platform with SDKs for Go, Python, TypeScript, Ruby, .NET, Java, and PHP. He notes that events still operate underneath, while the platform abstracts their complexity. He compares this shift to programming languages abstracting away lower-level work such as assembly and manual memory management.

Takeaways

  • Treat AI agents as distributed systems and plan for network and service failures.
  • Keep core business logic easy to trace instead of scattering it across event handlers.
  • Distinguish runtime independence from design-time coupling when evaluating event-driven systems.
  • Consider durable execution when workflows need automatic state recovery, retries, or long waits.
  • Evaluate whether a platform can handle event coordination so the team can focus on application behavior.

Mentioned in this talk

Search inside this talk

What was claimed 4

Related talks