Built-in durability: Introducing Workflow Development Kit
Blog post from Vercel
The Workflow Development Kit (WDK) is an open-source TypeScript framework that simplifies the creation of reliable and durable workflows by embedding durability as a language-level concept. It allows developers to transform ordinary async functions into durable workflows that can pause and resume seamlessly across deployments and crashes without requiring complex infrastructure such as message queues or persistence layers. WDK uses directives like "use workflow" and "use step" to manage tasks like assigning drivers or validating payments, automatically retrying on failure and maintaining state. By utilizing webhooks, workflows can pause until external data is received, and an event log provides comprehensive visibility into workflow operations. Designed to run on any platform or cloud, WDK's versatility is enhanced by its "Worlds" environments, which handle execution and orchestration, making code portable and scalable. With WDK, developers can focus on business logic rather than infrastructure, enabling the development of intelligent, reliable systems that require minimal extra coding efforts.