AI Agent Infrastructure
Idempotency keys
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.
What you will be able to do
- Explain how a server returns a saved result for a repeated key.
- Design an idempotency key from the business operation, not from the attempt.
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
- Sandboxed code executionIntermediate · 4 min
Explain how namespaces, control groups and capabilities combine into a sandbox for generated code, and which inputs a sandbox should never receive, and why each one…
- 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.
- Durable checkpointsIntermediate · 4 min
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.
- 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.