
What an agent is
An agent is an application whose control flow is decided by a model. The model reasons, calls tools and observes the results in a loop until it reaches an exit condition.
Queues, workers and state
Amazon SQS queues between the agent loop and its tool workers add buffering, scaling and back-pressure. A correlation ID ties the messages together, and state moves to Amazon Bedrock AgentCore Memory or Amazon DynamoDB.
Graph engineering
Not every step needs a model. A graph combines agent nodes with deterministic steps, explicit edges, persisted state and structural guardrails, such as a deterministic check before a refund is issued.
AWS Step Functions and AWS Lambda durable functions
AWS Step Functions and AWS Lambda durable functions run the graph: conditional edges, parallel fan-out, callbacks for human approval, and references to Amazon S3 or Amazon DynamoDB instead of large payloads.
Sagas and idempotency
There is no distributed transaction across tools, only a saga. Agents propose and deterministic steps commit. Compensations are defined in advance, and effects are idempotent.
Orchestrator, dispatcher and swarm
When the path isn't known at design time, specialist agents are coordinated by an orchestrator, by a dispatcher that fans out to sub-agents, or as a swarm working on a shared artifact. Each option trades off control, cost and resilience differently.
Event-driven building blocks
Coupling, queues and event buses
The talk starts with the types of coupling in distributed systems, how queues and event buses reduce them, and the difference between commands and events.