arXiv:2609.06128cs.AISep 2026

Manuscript Offprint

arXiv:2609.06128

Substrate-Portable Execution for Production LLM Workflows

Tarun Gopinath, Atul Kulkarni, Vijay Rajakumar, Shrikar Katti, Parthasarathy Govindarajen

Atul Kulkarni

Amazon

Seattle, WA, USA

atukulka@amazon.com

Tarun Gopinath

Amazon

Seattle, WA, USA

tarungop@amazon.com

Vijay Rajakumar

Amazon

Seattle, WA, USA

vijar@amazon.com

Shrikar Katti

Amazon

Seattle, WA, USA

shrikar@amazon.com

Parthasarathy Govindarajen

Amazon

Seattle, WA, USA

partgovi@amazon.com

Abstract

Production LLM agents often run the same logic—including tool-calling loops, retrieval chains, and compositional workflows—in several operational modes. However, execution semantics are usually coupled to one runtime. We encountered this portability problem in Rufus, a conversational AI assistant that integrates a large catalog of tool endpoints and serves millions of Amazon customers [6]. Systems such as Rufus use three execution modes: real-time serving for customer traffic, asynchronous execution for background tasks, and batch execution for high-volume offline workloads such as evaluation and content pre-generation. Each mode has different service-level objectives (SLOs) and typically uses a separate runtime. Reusing orchestration designed for streaming forces asynchronous and batch workloads into a blocking, synchronous execution model. It also prevents these workloads from using batch inference APIs, which offer a 50% discount at published prices [8].

We present a binding-adaptive agent execution platform that separates workflow definition from execution substrate. Developers express a workflow once as a typed dataflow graph. The platform compiles that graph to in-process streaming for real-time serving, durable orchestration with AWS SWF [3] for asynchronous execution, or distributed stream processing with Apache Flink [16] for batch inference. No workflow code changes are required. The central abstraction represents LLM inference as a suspendable graph node whose semantics depend on the selected substrate: streaming delivery online, durable retry in asynchronous execution, and batched submission offline.

We validated dozens of production agent configurations across five orchestration patterns: single-inference RAG, iterative ReAct, compositional PreAct, conditional routing, and multi-agent deep research. These patterns represent common synchronous orchestration structures in production LLM systems. Across all three bindings, we found no detectable difference in output quality. Batch execution also reduced per-query inference cost in line with published batch API pricing [8] and operated alongside the streaming path at production scale.

CCS Concepts

• Software and its engineering → Cloud computing; Domain specific languages.