AI Agent Infrastructure
Durable checkpoints
Explain how durable checkpoints let a long agent job resume after a crash, why the order of writes matters, and how replay differs from snapshots.
What you will be able to do
- Explain where checkpoints must live and what each one records.
- Verify a checkpoint restart by checking for steps that ran twice.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in AI Agent Infrastructure
- Tool retriesIntermediate · 4 min
Explain how retries with exponential backoff and jitter work, why nested retries multiply load, and why a retry is safe only for calls that can be repeated.
- Idempotency keysIntermediate · 4 min
Explain how an idempotency key lets a server recognize a repeated request, why a key must name the operation, and how keys are pruned and compared.
- Workflow state machinesIntermediate · 4 min
Explain how a workflow state machine uses a transition table to reject illegal moves, and how the states in an AWS Step Functions definition connect to each other.
- Queue based agent jobsIntermediate · 4 min
Explain why standard SQS queues deliver at least once, how the visibility timeout makes a message reappear, and how a job record stops duplicate effects.
- Concurrency limitsAdvanced · 5 min
Explains how concurrency caps and provider rate limits differ, and how a client should react to 429 responses with retry-after and backoff rather than more retries.
- Token budgetsAdvanced · 4 min
Explains why token budgets must be enforced in code, how input and output tokens differ, and how to find the tasks that use the most tokens.