Vercel Workflow SDK 5.8 cuts step latency 12×
Brief
Vercel rebuilt the Workflow SDK execution engine for performance, reducing step-to-step overhead and the extra function time used by large parallel runs.
Performance and upgrade
- In benchmarks comparing versions 5.2.0 and 5.8.0, p75 step-to-step overhead fell from 85 ms to 7 ms.
- For a 256-step fan-out, median time spent in functions beyond the steps' own work fell from 1,446 seconds to 105 seconds.
- Upgrade to workflow@5.8.0 or later. New runs use the new engine by default; runs already started on an older version continue on that version.
Retry safety and compatibility
- Speculative execution applies only to idempotent steps. Use maxRetries = 0 for steps that cannot safely be retried.
- Vercel-maintained Worlds support the new engine. Third-party Worlds need World spec version 9; otherwise, new runs continue using the previous engine.
Generated by AI from the original article. Check the source for full details.