# Workflow concepts

A Workflow turns one request into a run that the provider tracks. Starting it returns a run id. Later calls use the id to read the status or result. Store the id with the record that shows progress.

## A run is the durable unit

The workflow file describes the work. The run holds its payload, status, error, and result. A provider can resume a run after a worker or process stops. So when the provider needs it, keep side effects in durable steps.

Use a stable id when the same operation must not start twice. Expect retries, and make external calls safe to repeat.

## Providers own the runtime state

Cloudflare, Vercel, and OpenWorkflow store and run work in different ways. Your workflow and server API stay the same, and ViteHub writes the host files. Read [Workflow hosts](https://vitehub.dev/docs/workflows/hosts) before you choose a provider, and [Workflow limits and errors](https://vitehub.dev/docs/workflows/limits-and-errors) when you design retries.

The [Workflow server API](https://vitehub.dev/docs/workflows/server-api) starts runs, reads status, and returns results.

<!-- vitehub-docs:section-links -->
## In this section

- [Overview](https://vitehub.dev/raw/docs/workflows.md)
- [Get started](https://vitehub.dev/raw/docs/workflows/get-started.md)
- [Configure](https://vitehub.dev/raw/docs/workflows/configure.md)
- [Server API](https://vitehub.dev/raw/docs/workflows/server-api.md)
- [Hosts](https://vitehub.dev/raw/docs/workflows/hosts.md)
- [Limits and errors](https://vitehub.dev/raw/docs/workflows/limits-and-errors.md)
- [Concepts](https://vitehub.dev/raw/docs/workflows/concepts.md) (this page)

Next: [WORKFLOW_C0005](https://vitehub.dev/raw/docs/workflows/diagnostics/workflow_c0005.md)

All pages: [llms.txt](https://vitehub.dev/llms.txt)
