Durable workflows
This section covers work that must outlive a request and a process. A saga carries multi-step state across crashes, a trigger turns inbound events into durable work, and a stream publishes current state to live consumers. Each one is a typed definition in your workspace, so you can read what a workflow does from its definition.
The failure these runtimes address is concrete. A checkout charges a card, the process dies before fulfillment confirms, and on restart nobody knows whether to refund. A retry loop cannot answer that, because the state between the two steps lived only in memory. The storefront checkout saga tutorial is built around that scenario.
The scaffold ships the chain running. A webhook lands on the triggers service and enqueues a
workers job. The job publishes a UserSettingsCreated message,
and a saga consumes it and records completion in the durable store you chose. Each runtime exposes
an HTTP surface, so you can confirm that a message crossed each step.
Choose a runtime
| Your problem | Use |
|---|---|
| State between steps must survive a crash, with compensation when a step fails | Durable sagas |
| The outside world starts the work: webhooks, dropped files, cron | Event triggers |
| Consumers need the latest state without polling | Durable streams |
Next steps
Start with Durable sagas to model your first crash-safe, multi-step process.