API312: Building distributed multi-agent architectures on serverless

Resources for API312: Building distributed multi-agent architectures on serverless

Moving from a single AI agent to a multi-agent system raises architectural questions: how to scale an agent's building blocks through decomposition, how agents coordinate and where state lives, and how to keep control while allowing emergent outcomes. This chalk talk explored distributed multi-agent architectures on AWS Serverless: decomposing a single agent with queues, combining agents with deterministic steps in a graph, and choosing between centralized, structured and decentralized designs.

This page has the slides and links for each topic of the talk.

AI agents and the agentic loop

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.

Decomposing the agent

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.

Running graphs on AWS

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.

Transactions and failure handling

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.

Multi-agent architectures

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.

Presented by:

Ben Freiberg

Ben Freiberg

Ben is a Senior Solutions Architect at AWS with over 14 years of professional experience. In his role, he guides customers to leverage the cloud to achieve their goals, accelerate their digitization, and create more room for innovation. He has a background as a software architect. Ben is based in Frankfurt, Germany.

Alexander Günsche

Alexander Günsche

Alex is a Senior Solutions Architect at AWS with 20 years of IT experience in expert and leadership roles. He is a strong advocate of agile and DevOps practices, and he enjoys seeing serverless, cloud-native and event-driven architectures deployed at scale. He has delivered large transformation projects and successfully developed own and customers' businesses. As an international speaker, he has held advanced technology sessions at a wide range of events.