Crash-Proof AI Applications: Durable Spring AI 2.x with Dapr Workflows
summary
Durable execution for conversational agents uses Dapr Workflows with Spring AI 2.x by turning every LLM call and tool invocation into a workflow activity (call advisor appended to the advisor chain), registering tools as named Spring beans, and recording messages in state so a restarted JVM can replay to completion. Demo shows killing the JVM and resuming without losing progress; tradeoffs: idempotent tools required, extra milliseconds per activity roundtrip and a default loop cap of 20 iterations.
AI-written summary · about
chapters (18)
- 0:00Introduction to durable Spring AI
- 1:03Problem with process crashes
- 3:59Demo of crash and duplicate tool calls
- 5:28Durable execution with Dapr workflows
- 6:13Checklist for durable frameworks
- 7:39Evolution of Spring AI versions
- 9:26Integrating Spring AI with Dapr workflows
- 11:55Making tools durable with advisors
- 13:39Hard parts identity and side effects
- 15:25Local Dapr workflow demo
- 17:32Catalyst managed solution demo
- 18:41Side effects and idempotency
- 20:04Tradeoffs of durability approach
- 21:49Loop iteration limits
- 22:11Chat memory with Dapr state store
- 22:54Dapr LLM component
- 23:59Summary and key takeaways
- 25:02Q&A session
