Course contentsShow
← Cloud and Infrastructure
Lesson 2529 of 2,98954. Serverless ArchitecturesFree lesson

Temporal and Alternative Orchestrators

Overview of open-source orchestration frameworks like Temporal and Cadence for portable workflow definitions.

Temporal and Alternative Orchestrators

What You'll Learn

You'll discover open-source orchestration frameworks like Temporal and Cadence that offer portable, durable workflow definitions beyond cloud-specific solutions.

Beyond Cloud-Vendor Lock-In

While AWS Step Functions, Azure Durable Functions, and Google Cloud Workflows provide powerful orchestration, they tie your workflow logic to a specific cloud provider. Temporal and Cadence are open-source alternatives that let you define workflows in general-purpose code (Go, Java, Python, TypeScript) that can run anywhere—on-premises, multi-cloud, or hybrid environments.

How They Work

Think of these frameworks as "state machines as code." Instead of defining workflows in JSON or YAML (like Amazon States Language), you write normal functions with loops, conditionals, and error handling. The framework ensures these functions are durable—if a worker crashes, the workflow automatically resumes from where it left off.

Temporal (a modern fork of Cadence) persists execution state to a backing database. When you call an activity (a single unit of work), the framework records the result. If your process dies, a new worker picks up the workflow using that history, replaying decisions without re-executing side effects.

Key Differences from Step Functions

  • Code-based: Write workflows in your application language, not configuration files
  • Portability: Run on Kubernetes, VMs, or any compute platform
  • Versioning: Deploy new workflow code while old executions continue safely
  • Developer experience: Local testing, debugging with standard IDE tools

These frameworks excel at complex, long-running business processes (days or months) with intricate branching logic that's easier to express in code than declarative formats.

Key Takeaway: Temporal and Cadence provide cloud-agnostic workflow orchestration using code-based definitions, offering portability and flexibility beyond vendor-specific state machine services.