LangGraph 에이전트를 Bedrock AgentCore로 이관한 PoC 후기
주말에 Migrate agentic workloads to Amazon Bedrock AgentCore 글을 읽었는데, 문장 하나가 눈에 박혔습니다. "노트북에서 돌아가는 에이전트는 프로덕션 에이전트가 아니다." 정확히 지난 분기에 겪은 상황이었습니다. LangGraph로 만든 고객 지원 에이전트 데모는 잘 돌아갔는데, 실사용자가 붙기 시작하니 세션 격리, 체크포인트 지속성, 툴 인증 같은 것들이 전부 우리 코드가 되어버렸거든요. Amazon Bedrock AgentCore는 이 "에이전트 추론과 상관없는 운영 부담"을 서비스 단위로 떼어가는 플랫폼입니다. Runtime은 세션당 마이크로VM으로 컴퓨트를 대신 돌려주고, Gateway는 툴을 MCP(Model Context Protocol)로 퍼블리싱하면서…
The recent migration of agentic workloads to Amazon Bedrock AgentCore was explored in this post. While running the LangGraph-based customer support agent demo on a laptop, it became apparent that the session isolation, checkpoint persistence, and tool authentication were all part of our own code once real users started engaging. Amazon Bedrock AgentCore is a platform that removes operational burdens from agent inference, handling runtime, tools, and memory separately.
The runtime is replaced by microVMs for each session, the Gateway acts as an MCP (Model Context Protocol) tool publisher, and Memory maintains conversation state even if the process crashes. The source material divides this into Stage 1 (Stage boundaries), Stage 2 (loop redesign using model-driven planning), and Stage 3 (harness).
This article presents the migration design by examining the original source and public sample repository, aws-samples/sample-migrate-agents-to-amazon-bedrock-agentcore, with a real deployment in my AWS account to verify the findings.
The post outlines the core claims, which include 45/22/85 lines changed in the agent, adapter code, and stage 0 imports, respectively. Gateway tool names start with '___' prefixes, and cross-process memory continuity is maintained. The deployment confirmed OTEL settings are unnecessary, generating CloudWatch logs automatically. However, there are caveats to consider, such as potential issues with Mac ARM or x86 vendorizing, and the unreliability of event counts for asserting continuity.
The Stage 2 trade-off is the loss of deterministic routing, as the model-driven planning removes a hard-coded branch. Ultimately, Stage 1 is recommended for most teams due to the lack of hard-coded bottlenecks in the LangGraph graph and the absence of new intents that would require prompt handling.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.