AI Agent Infrastructure
Workflow state machines
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.
What you will be able to do
- Explain how a transition table rejects illegal moves between job states.
- Check a state machine definition for states that lack a Next or End field.
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
- 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.
- 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.
- 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.
- Cost per taskAdvanced · 5 min
Shows how to calculate cost per task from billing tags and completed-run counts for each task type, and why failed runs must stay in the spend figure.