DEV Community

Mikhail Savchenko
Mikhail Savchenko

Posted on Originally published at inite.ai

AWS Reworks Bedrock AgentCore to Cut Idle Memory Costs and Cold-Start Delays

AWS announced a new version of the runtime behind Amazon Bedrock AgentCore, the managed compute layer teams use to deploy and run AI agents without operating their own infrastructure.

The change targets two costs that show up once agents move from short chat exchanges to longer-running, often idle, production work. First, memory: the original runtime held a session's peak memory allocation until the session ended, even after the agent stopped using it, so bursty or long-running agents paid for their high-water mark the whole time they ran. The new runtime starts each session from a small memory footprint and pages in more only as the workload needs it, reclaiming memory once it goes cold. AWS says billing now tracks that reclaimed usage rather than the peak.

Second, cold starts: previously, spinning up a fresh environment got slower as container image size or concurrency grew. AWS's own testing — 5,000 cold invocations per agent across five image sizes, using an empty echo agent that calls no model or tools — found the original runtime's P75 cold-start latency rising from about 5.4 seconds to nearly 30 seconds as image size increased. The new runtime prepares and snapshots the environment once, then restores that snapshot for every new instance, holding P75 cold-start latency at roughly 2 seconds from a 200 MB image up to 2 GB, regardless of image size.

AWS frames the net effect as a higher per-unit rate but far fewer billed GB-hours, with the total bill dropping for most agents because the memory footprint shrinks more than the rate rises.

To use the new runtime, developers set the platformVersion parameter to V2 when creating or updating a runtime. AWS also listed several features still coming: committed baseline pricing (reserving a memory floor and bursting above it), larger compute and storage options, x86 microVM support, session suspend/resume with memory snapshotting, and scoped identity for unattended agents via session context keys, aimed at limiting what an agent can do when running without a human watching.

Top comments (0)