Workflow is 10x faster, again
Workflow SDK 5.8 introduces a new execution engine that reduces step-to-step latency by 12x and cuts function time for large fan-outs by 14x, improving turn times for durable AI agents. The update enables speculative execution for idempotent steps, reducing overhead in benchmarks—p75 step-to-step latency dropped from 85 ms to 7 ms, and resumption after idle time improved from 425 ms to 184 ms. Users must upgrade to workflow@5.8.0 or later, ensure steps are idempotent, or set maxRetries = 0 for non-idempotent steps. The new engine is enabled by default, with existing runs continuing on the older version. Third-party Worlds must support spec version 9 to benefit from improvements.