Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Vercel 9 min read Release mediumAdept

Workflow SDK 5: built for production

Workflow SDK 5 reworks Vercel's durable async JavaScript workflow engine around security, regional placement and performance. Step payloads are now encrypted end to end with AES-256-GCM using per-run keys. On self-hosted Worlds, encryption works through a getEncryptionKeyForRun() hook. Runs are pinned to a home region chosen at start(). The engine executes multiple steps inline instead of taking a queue hop per step, replays incrementally, and streams over WebSockets. Benchmarks against v4 show p75 step-to-step overhead dropping from 618 ms to 109 ms, late-run overhead in a 1,020-step workflow falling from 1,748 ms to 70 ms, and stream delivery time improving 4.2×.

Assumes: async/await in JavaScriptdurable execution concepts

Related posts

  • Introducing eve 1.0

    Vercel easyNovice

    eve 1.0, Vercel's open-source framework for production agents, is now generally available with a customizable harness (model, tools, subagents, approvals), durable execution via the Workflow SDK, multiplayer sessions across Slack and other channels, multi-tenant credentials and policies, cross-session memory, and OpenTelemetry-based tracing with per-destination redaction. Median hosted turn overhead fell from 3.036s to 414ms (p95 3.692s to 633ms) after Workflow spec 9 gave each run a single orchestrator, moved event writes to WebSockets and cut redundant history reads. Storing only changed conversation data between turns, referencing images instead of copying bytes, and reusing sandbox snapshots cut estimated Workflows cost for a 50-turn session by about 76%.

  • Speeding up agentic workflows with WebSockets in the Responses API

    OpenAI mediumAdept

    OpenAI cut end-to-end latency of agentic loops on the Responses API by about 40% by adding a WebSocket mode that keeps a persistent connection with a connection-scoped in-memory cache of prior response state. Follow-up `response.create` calls with `previous_response_id` reuse cached rendered tokens, tool definitions and routing, so safety classifiers and validators process only new input, and postinference work like billing overlaps with later requests. An earlier prototype that modeled the whole rollout as one long-running response blocked on client tool calls was faster still, but it was dropped in favor of keeping the familiar API shape. Earlier sprint work (token and config caching, fewer network hops, faster safety checks) improved TTFT by about 45%, and the WebSocket mode let GPT-5.3-Codex-Spark reach 1,000+ TPS, with partners such as Cline, Vercel and Cursor reporting 30-40% speedups.

  • Serverless functions vs containers: CI/CD, database connections, cron jobs, and long-running tasks

    Railway mediumAdept

    Serverless functions and container platforms differ in execution model, which changes how you handle deploys, database access, cron jobs, rollbacks and long-running work. Serverless imposes execution limits of 30 seconds to 15 minutes, memory caps, cold starts and no persistent connections, so long jobs need checkpointing, chained invocations or streaming. Railway's containers avoid those limits and add automatic private networking, reference variables for credentials, and cron with skip-if-running semantics that requires jobs to close connections and exit. Rollbacks are similar on both, but schema migrations should stay backward compatible because rolling back code does not reverse them.

  • Bringing serverless functions closer to the speed of wire

    Modal mediumAdept

    Modal rebuilt its serverless I/O plane, which queues Function inputs and outputs, and now runs it in at least four regions. A new `routing_region` flag lets callers avoid round trips to us-east, and the completed migration cut end-to-end Function Call latency by about 80ms at p50. The redesign moves non-critical work like autoscaling stats and dashboard events to the background and minimizes shared-storage access on the hot path, using client-side metadata caching and JWT-based auth. It also rewrites the server layer from async Python to Go to avoid event-loop lag, and stays on Redis 7.1 for its Redis-streams queues after load tests showed CPU spikes from 7.2 onward. Users are advised to route near their clients, keep payloads under 2MiB to skip blob-storage uploads, and batch small inputs.

  • How Zillow runs 100 million daily notifications on AWS Step Functions

    AWS Architecture Blog mediumAdept

    Zillow replaced more than 10 per-campaign notification generator services with a configuration-driven Campaign Orchestrator that runs each of 100M+ daily email and push notifications as a short-lived AWS Step Functions Express Workflow, calling a shared library of stateless, schema-driven content modules (the Universal Content Generator) via HTTP Invoke. Step Functions beat Temporal, Flowable and an in-house engine at roughly a quarter of the build and maintenance effort. Express mode was chosen over Standard for its higher start quota and low latency, with at-least-once semantics handled by idempotent modules. Key techniques include an SQS-fed router for pausing, replay and throttling, EventBridge connections for API-key auth, component inheritance compiled into task states, a declarative config layer that AI tools can safely generate, and batching for throughput and cost.

The quest for software engineering knowledge.

Look:
Layout: