FOMO Daily
Feed
Vercel·

Workflow SDK adds idempotent starts

Backend & APIsVercelWorkflow SDKIdempotency

TL;DR

Vercel’s Workflow SDK fixes a race that could start duplicate workflows by making starting a run and claiming its unique token a single atomic operation. Duplicate starts are safely rejected, and their payloads can be routed to the existing run, with early messages buffered and delivered in order. Available in workflow 5.4.0, the feature also supports retaining tokens after completion to block late duplicates.

Relevant links

Sign in to save links
Read the original post Sign in to mark as read or skip