Production agents suffered high latency and costly workflow steps.

Slow turns increased response time and Vercel Workflows expenses.

The team solved it by: 👉 Optimized Workflow SDK to use a single orchestrator per run. 👉 Moved event writes to WebSockets and eliminated redundant history reads. 👉 Added caching and session pre-warming in the harness.

The parts that matter: 1️⃣ Workflow SDK - saves progress, provides single orchestrator and caching 2️⃣ Vercel Workflows - handles durable execution and billing for agent turns

Median turn latency dropped from 3.036 s to 414 ms and a 50-turn session cost fell 76% (5.4¢ to 1.3¢).

The speed gains rely on the new Workflow SDK 5.5 and Vercel-specific optimizations, so teams must adopt the updated SDK and may face added integration complexity. Full tracing and cost benefits are best realized on Vercel hosting, limiting portability to other platforms.

How do you balance SDK upgrades against added operational complexity when targeting lower latency?