Events are the Wrong Abstraction for Your AI Agents - Mason Egger, Temporal.io
Jun 27, 2025 · 14:40
Mason Egger, a Senior Developer Advocate at Temporal, argues that event-driven architecture (EDA) is the wrong abstraction for AI agents and proposes durable execution as the correct one. He compares EDA to a geocentric model—complex and error-prone—and durable execution to a heliocentric model that simplifies development by automatically preserving state, retrying failures, and decoupling logic from infrastructure. Egger critiques EDA for lacking clear APIs, scattering business logic, creating ad hoc state machines, and causing race conditions, noting that EDA is only loosely coupled at runtime, not design time. He presents Durable Execution, implemented by Temporal's open-source platform, as a crash-proof approach that virtualizes execution across machines and languages (Go, Python, TypeScript, etc.), letting developers focus on core logic instead of queues and events. The talk concludes that all AI agents are distributed systems, and durable execution abstracts away event complexities, making failures inconsequential.