Vercel Workflow SDK 5.8 adds speculative workflow execution
Vercel released Workflow SDK 5.8 with a redesigned workflow execution engine that uses speculative execution to continue before step results are fully written to storage. In Vercel's tests, the 75th-percentile inter-step latency fell from 85 milliseconds in version 5.2.0 to 7 milliseconds, while a five-round AI-agent test saw overhead drop from 3 seconds to 0.9 seconds. Speculative steps must be idempotent, and third-party execution backends need support for the World version 9 specification.
The release targets orchestration overhead in durable workflows, including parallel jobs and multi-round AI-agent execution, while making idempotency and backend compatibility explicit requirements.
文/李建興|2026-11-30 發表
Vercel發布持久化工作流程開發工具**Workflow SDK 5.8**,新版採用重新設計的工作流程執行引擎,導入推測執行(Speculative Execution)機制,減少等待步驟執行紀錄寫入的時間。Vercel測試顯示,與5.2.0版相比,步驟間延遲的第75百分位數從85毫秒降至7毫秒,降幅約92%,新版也減少大量平行任務及AI代理人多輪執行的額外耗時。
Workflow SDK是一套用來建置具備持久執行(Durable Execution)能力的工作流程開發工具,適用於訂單處理、資料處理及AI代理人等應用。透過保存各步驟的執行狀態及結果,讓工作流程在系統故障或暫停後仍能恢復執行,但儲存執行紀錄及調度後續任務也會增加延遲。
新版引擎在判斷沒有其他事件可能影響後續執行的情況下,可在前一步驟完成後,無須等待執行結果寫入儲存系統,就能利用該結果繼續執行工作流程,並在背景寫入相關執行紀錄。