Diagrid

Build Durable Dapr Workflows in .NET with Aspire

Duration: 30 minutes

Supported languages: .NET

Learn how to build a code-first, fault-tolerant Dapr Workflow application that runs with Aspire. In this hands-on track you'll scaffold a new Aspire solution, wire up Dapr Workflow, and use the Diagrid Dev Dashboard to inspect the workflow state as it runs locally.

What you'll build

The Enterprise Diagnostics application — this application performs diagnostics on the star ship USS Enterprise. It uses Dapr Workflow to fan out to three star ship subsystem activities in parallel, aggregates the results into a prioritized report, and conditionally notifies the bridge.

In this self-paced course, you'll learn:

  • How Dapr and .NET Aspire complement each other when building distributed applications.
  • How to scaffold a new Aspire solution and add the NuGet packages required for Dapr Workflow.
  • How to define a Dapr Workflow that uses the fan-out / fan-in pattern, with multiple parallel activities and conditional follow-up.
  • How to configure Dapr state store components so workflow state is persisted across runs.
  • How to register Dapr Workflow as an Aspire resource alongside the API service and its Dapr sidecar.
  • How to trigger workflows via HTTP and inspect their state, execution history, and activity inputs/outputs in the Diagrid Dev Dashboard.
The Dapr University Workflow Aspire Track badge: a pixel-art green Dapr robot with glasses in front of a workflow diagram, framed by green circuit lines, with the Dapr and Diagrid logos

Earn a Holopin badge. Finish this track to collect its Dapr University badge on Holopin. The link to claim it is on the last page of the track.

Part of Make Workflows Durable, a free learning path in Durable Execution & Dapr University.

When you've registered to access learning content, click the View fullscreen button in the course player below.

Having trouble loading the course? Open in a new tab