Menu

Workflow SDK 5 is now available
📰

Workflow SDK 5 is now available

Vercel News·Pranay Prakash·2 days ago
#wN6CyN3j
#vercel#workflow#region#world#article
Reading 0:00
15s threshold

When we first launched Workflow SDK, the goal was simple: write regular async JavaScript, and let the SDK keep it running through crashes, deployments, and long waits.

workflows/welcome-user.ts

import { sleep } from "workflow" ;

export async function welcomeUser ( email ) {

"use workflow" ;

const user = await createUser ( email ) ;

await sendWelcomeEmail ( user ) ;

// Survives crashes and deployments

// while it waits

await sleep ( "3d" ) ;

await sendCheckInEmail ( user ) ;

}

A basic durable workflow

Last year, we shipped just that , with the world-class developer experience Vercel is known for.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.