← back

Events are the Wrong Abstraction for Your AI Agents - Mason Egger, Temporal.io

2.9K views · Jun 27, 2025 · 14:40 min · Watch on YouTube ↗
Takeaway

Putting events at the center of agent architectures hides the real workflow logic; durable-execution engines model business intent more honestly.

Summary

  • Mason Egger (Temporal) uses the geocentric→heliocentric analogy to argue event-driven architectures put events at the center while business logic should be.
  • EDA costs: no clear APIs (AsyncAPI is just message schema), scattered logic across services, ad-hoc state machines, local caches, race conditions, dead-letter queues replacing actual workflow.
  • Provocative claim: EDA is loosely coupled at runtime but tightly coupled at design time—analogous to making all variables global so 'anyone can read them.'
  • Proposes durable execution / workflow engines (Temporal) as the right abstraction for agent orchestration with retries, state, and human-in-the-loop built in.
agentstemporalarchitecture
Original description
AI Agents are distributed systems. Agents need to connect and communicate with tools, data repositories, other agents, etc., all over a network. Event-Driven Architecture is a common pattern for facilitating this connectivity, using Events as the communication abstraction. However, this pattern introduces complexities as well, such as fragmented logic, increased latency, decreased observability, and more. But what if there were a way to get the benefits of Event-Driven Architecture without the complexities? Enter Durable Execution. In this talk, we'll discuss the pitfalls of Event-Driven Architecture, how Durable Execution solves these issues, and why Durable Execution, not Events, is the correct abstraction for building AI Agents.

About Mason Egger
Mason is currently a Senior Developer Advocate at Temporal Technologies who specializes in building community, developer-focused educational content, distributed systems, and Python. Prior to his work at Temporal he worked in Developer Relations at DigitalOcean and as a backend engineer at various companies. He’s an avid programmer, speaker, educator, and writer/blogger. He is President of the PyTexas Foundation, Conference Chair of the PyTexas Conference, and a founding organizer of the PyTexas Meetup.

Recorded at the AI Engineer World's Fair in San Francisco. Stay up to date on our upcoming events and content by joining our newsletter here: https://www.ai.engineer/newsletter