Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Beyond Background Jobs: Building Durable Workflows with Temporal and .NET 10

Description and use

The article shows how to replace a sequential function call chain in ASP.NET Core with a durable Temporal workflow, providing resilience to failures and retry capabilities.

Problem

Handling failures, retries, and long‑running steps in a .NET order‑processing pipeline is complex and error‑prone.

Outcome

The example demonstrates how Temporal turns a fragile sequential method into a durable, retryable workflow that can survive crashes and external delays.

Workflow

  • Create ASP.NET Core project
  • Add Temporal .NET SDK
  • Define OrderRequest model
  • Implement activities (ChargePaymentAsync, RequestManagerApprovalAsync, SendEmailAsync)
  • Define workflow logic with conditional manager approval
  • Register worker and start Temporal server

Evidence

Temporal is a durable workflow execution platform that helps applications reliably execute long-running and failure-prone workflows.

Source

Create a new ASP.NET Core application: dotnet new web -n TemporalDemo

Source

dotnet add package Temporalio

Source

  • Record date: 2026-10-05T04:41:10.155Z