Orchestration & durability

Build long-running, multi-step business processes that survive failures and recover gracefully. This pattern covers durable workflow orchestration with compensation logic, saga patterns for distributed transactions, and reliable timers for scheduled operations — all with built-in fault tolerance.

Overview

When to Use This Pattern

  • You need multi-step business processes that must complete reliably despite failures

  • Your application requires compensation logic to undo partial work when a step fails

  • You want to implement saga patterns for coordinating distributed transactions

  • You need reliable timers or scheduled actions that survive process restarts

Akka Components Involved

  • Workflows — define multi-step processes with compensation, retries, and durable state

  • Timed Actions — schedule reliable timers and periodic operations

  • Entities — maintain durable state for each step in the orchestration

Sample Projects

The following sample projects demonstrate this pattern: