Skip to content
← Back to all sessions

Building Durable AI Agents from Scratch

2027 Edition AI Agents & Developer Productivity Talk 45 mins

AI agents are relatively straightforward to prototype, but notoriously difficult to make resilient in enterprise production. When an autonomous agent crashes halfway through executing a multi-step workflow spanning several API calls and database mutations, what guarantees state consistency? How do you resume without duplicating side effects or losing customer context?

In this session, we build a durable AI agent runtime from first principles using .NET—without relying on heavy third-party orchestration SDKs. We dissect the fundamental primitives of durable execution: persistent state snapshots, immutable event logging, deterministic replay, crash recovery, and safe tool execution contracts.

Through concrete implementation examples, we tackle real-world distributed challenges including idempotent tool design, transaction boundaries across LLM outputs, and replaying intermediate reasoning steps for seamless failover recovery.

Key Takeaways

  • Durable Agent Primitives: Master the core architecture required to make long-running AI workflows crash-resilient.
  • Deterministic Replay & State Logs: Understand event-sourcing patterns that enable agents to resume execution exactly where they left off.
  • Idempotency in Agent Tooling: Architect external tools and database connectors to safely handle unexpected agent retries without double-execution.
  • Framework-Independent Patterns: Learn runtime architectural concepts that transfer directly to any programming language or cloud platform.

Target Audience

  • Backend developers, systems architects, and engineering leads building reliable, multi-step agentic workflows.

Prerequisites

  • Familiarity with object-oriented programming (C#, Java, or TypeScript) and basic knowledge of event-driven or stateful architectures.

Presenting Speakers

Divakar Kumar
Divakar Kumar
Technical Architect & Microsoft MVP · Flyerssoft

Divakar Kumar is a Technical Architect at Flyerssoft, a Microsoft Most Valuable Professional (MVP) in AI, and …

// PRESENTED WITH COMMUNITY