
AWS published guidance on three asynchronous invocation patterns for calling Amazon Bedrock AgentCore agents in serverless pipelines that eliminate idle compute costs.
When an AI agent is reasoning through a document or task, a synchronous caller—such as a Lambda function—normally blocks and incurs billing for its entire processing time, even though it is doing nothing.
The three patterns release the caller's compute during the wait and resume only when the agent returns a result, shifting the cost from the idle caller to the agent's consumption-based model.
What happened
AWS published guidance on three asynchronous invocation patterns for Amazon Bedrock AgentCore agents in serverless pipelines—task-token callback, direct service integration, and durable functions—designed to eliminate idle compute costs while agents reason through tasks.
Why it matters
When a Lambda function or compute service calls an agent synchronously and waits for a response, it remains billed for its full compute allocation during that idle time, even though the agent itself is not consuming CPU. The three patterns release the caller's compute during the wait, resuming only when the agent returns a result, dramatically reducing costs for workflows like document validation in real-estate financing.
What to watch
Pattern 2 (direct service integration) removes the Lambda dispatcher entirely by having Step Functions invoke Amazon Bedrock AgentCore directly; Pattern 1 (task-token callback) keeps a Lambda for custom logic but returns in seconds; Pattern 3 (durable functions) expresses the same orchestration as code in a single Lambda using the durable-execution SDK.
Ask the AI about this article →
AWS's guidance addresses a fundamental cost asymmetry in serverless AI agent workflows. Amazon Bedrock AgentCore uses a consumption-based model that charges only for memory (and model output tokens) while the agent is idle—it does not bill CPU time during waits on language model generation or external tool calls. The compute service that called the agent, however, has no such behavior: a Lambda, container, or EC2 instance that blocks on a synchronous call holds its entire allocation and incurs billing for every second of that idle time. This mismatch means the caller's cost tracks the agent's runtime, not the agent's actual work. The three patterns AWS describes—task-token callback, direct service integration, and durable functions—all follow the same principle: start the agent, release the caller's compute immediately, and resume only when the agent has a result. The differences are trade-offs in implementation: task-token callback keeps a Lambda in the path for custom logic; direct service integration removes the Lambda entirely by integrating Step Functions directly with AgentCore; and durable functions allow the same orchestration to be expressed as code in a single Lambda rather than a state machine.
AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.
Free · takes 30 seconds · unsubscribe anytime
Ask AI anything about this article. Q&As are published on this page for other readers too.
As AI technology matures, the bottleneck in the industry is moving beyond semiconductor constraints like GPUs…

OpenAI has launched an Apple Messages plug-in for ChatGPT that lets users connect their Messages inbox to the…

Amazon Bedrock now supports OpenAI GPT-5.6 models (Sol, Terra, and Luna variants) across more than 25 AWS Regi…

Slack introduced Slack Code, a new feature that lets teams collaborate with AI coding agents (Claude, Devin, G…

Cisco is transforming its digital customer experience (DCX) strategy by embedding AI throughout customer journ…

Mastercard CEO Michael Miebach introduced "Agent Pay" last April, a payment framework that allows AI agents to…
