Dapr Workflow lets you write long-running business processes as plain C# code that survives crashes and restarts by recording every step to a state store. This walkthrough builds an order processing workflow with four activities (inventory check, payment, stock update, customer notification), wires it up with .NET Aspire for one-command local orchestration using Valkey as the actor-backed state store, and adds the Diagrid Dev Dashboard to inspect workflow instance state and execution history. Key rules covered include keeping workflow code deterministic, using activities for all side effects, pinning the Valkey password so the Dapr component YAML stays consistent, and setting actorStateStore: true in the component config.
Table of contents
What Dapr Workflow Actually IsBuilding the WorkflowStarting Workflows Over HTTPRunning Everything With AspireInspecting Workflow State LocallySummary5.1K Impressions1 Comment