Foundations
Learn the core concepts of workflow programming to build durable, long-running applications.
Workflow programming can be a slight shift from how you traditionally write real-world applications. Learning the foundations now will go a long way toward helping you use workflows effectively.
Workflows and Steps
Build long-running, stateful application logic that persists progress and resumes after failures.
Starting Workflows
Trigger workflow execution with the start() function and track progress with Run objects.
Errors & Retrying
Customize retry behavior with FatalError and RetryableError for robust error handling.
Hooks & Webhooks
Pause workflows and resume them later with external data, user interactions, or HTTP requests.
Streaming
Stream data in real-time to clients for progress updates and incremental content delivery.
Serialization
Understand how workflow data is serialized and persisted across suspensions and resumptions.
Idempotency
Make step retries safe and coordinate duplicate workflow starts with hook tokens.
Versioning
Understand how workflow runs are pinned to deployments, how to recover runs after a fix, and how to opt in to newer code explicitly.