# Default to serverless for AI agents, then let production data decide what moves

DevFeed: [Default to serverless for AI agents, then let production data decide what moves](<https://devfeed.tech/articles/default-to-serverless-for-ai-agents-then-let-production-data-decide-what-moves-107138.md>)

Original publisher: [Read original article](<https://www.datadoghq.com/blog/serverless-ai-agents/>)

Author: Candace Shamieh; Alex Barksdale; James Eastham; Olivier Nzia

Published: 2026-10-29T00:00:00Z

Content type: article

Language: en

Sources: [Datadog](<https://devfeed.tech/sources/datadog-the-monitor-blog.md>)

Topics: [Serverless](<https://devfeed.tech/topics/serverless.md>), [agentic workflows](<https://devfeed.tech/topics/agentic-workflows.md>), [AI Infrastructure](<https://devfeed.tech/topics/ai-infrastructure.md>), [serverless monitoring](<https://devfeed.tech/topics/serverless-monitoring.md>), [Monitoring](<https://devfeed.tech/topics/monitoring.md>), [long-running](<https://devfeed.tech/topics/long-running.md>), [AWS Step Functions](<https://devfeed.tech/topics/aws-step-functions.md>), [AWS Lambda](<https://devfeed.tech/topics/aws-lambda.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [azure functions](<https://devfeed.tech/topics/azure-functions.md>), [LangChain](<https://devfeed.tech/topics/langchain.md>), [vercel ai sdk](<https://devfeed.tech/topics/vercel-ai-sdk.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [2026](<https://devfeed.tech/tags/2026.md>), [about](<https://devfeed.tech/tags/about.md>), [accelerate](<https://devfeed.tech/tags/accelerate.md>), [agent-observability](<https://devfeed.tech/tags/agent-observability.md>), [agentic-ai](<https://devfeed.tech/tags/agentic-ai.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [apm](<https://devfeed.tech/tags/apm.md>), [build](<https://devfeed.tech/tags/build.md>), [compare](<https://devfeed.tech/tags/compare.md>), [compute](<https://devfeed.tech/tags/compute.md>), [costs](<https://devfeed.tech/tags/costs.md>), [data](<https://devfeed.tech/tags/data.md>), [execution](<https://devfeed.tech/tags/execution.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [let](<https://devfeed.tech/tags/let.md>), [production](<https://devfeed.tech/tags/production.md>), [profile](<https://devfeed.tech/tags/profile.md>), [run](<https://devfeed.tech/tags/run.md>), [serverless](<https://devfeed.tech/tags/serverless.md>), [serverless-monitoring](<https://devfeed.tech/tags/serverless-monitoring.md>), [workflows](<https://devfeed.tech/tags/workflows.md>)

## AI overview

Start by evaluating serverless for agent workloads, then use production measurements to decide whether particular steps need warm or dedicated capacity. The excerpt reports a study of over 35,000 coding-agent sessions in which the median session spent 20% of its lifetime on LLM or tool calls, with the rest idle between steps. Build an execution profile from arrival patterns, burst and concurrency, response-time goals, active versus elapsed run time, and resource requirements; daily averages can conceal bursts. For multi-step runs that pause, durable workflows can checkpoint progress, release compute, and resume at a timer, event, or callback. Retries should avoid repeating external side effects. Compare placements by cost per successful run, including attempted work, orchestration, storage, network, telemetry, and any added costs from retries; account for minimum warm capacity when required. Production traces can identify whether latency comes from startup or from model, tool, and retrieval activity. Move only steps whose measured latency, utilization, or runtime constraints justify it, and reassess as workload and pricing change.

## Source excerpt

Learn how to run AI agents as serverless workflows, build an execution profile, and compare costs against warm or dedicated compute.