Durability modes and safe replays
A saved run can continue after a failure, but the failed node starts again from its first line. See how the three durability modes decide when checkpoints are written, and how to stop a payment from happening twice.
12 minPro
Checking your access…
Inside this lesson
- An animation you play, pause and step through, with each part saying what it is doing.
- The real code beside it, with the lines for each step lit up.
- Practice mode, where you route each message yourself, and a short quiz.
- About 12 minutes.
Written from the official documentation
In this module: Persistence and memory
- Checkpointers and threadsSave state at every step and resume a thread by its ID.Pro
- State history and time travelRead past checkpoints, replay a run or fork it with new state.Pro
- Durability modes and safe replaysChoose exit, async or sync writes and keep side effects idempotent.Pro
- Checkpointer backendsSQLite, Postgres and other savers, serializers and custom savers.Pro
- Managing conversation historyTrim, delete or summarize messages so the context still fits.Pro
- Long-term memory with storesNamespaced items and semantic search shared across threads.Pro