Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

DBOS 9 min read Opinion easyNovice

Applications are Dead. Long Live Workflows

Middleware should manage workflows rather than applications: the three-tier app server, which replaced two-tier client-DBMS setups in the 1990s to fix connection and memory limits, should evolve into a workflow orchestrator. Agentic AI, multi-step business logic such as an ecommerce order (inventory, credit check, payment, fulfillment), and extreme-scale B2C workloads all need graph-based step management, durability, backout, saga-style compensation, and elastic scaling. Moving these out of application code gives restart from the last completed step instead of from scratch, a single place to change control flow, structured error paths, and checkpoint-based time-travel debugging. DBOS embeds orchestration as a library that keeps workflow state in the application's existing database, avoiding the separate orchestration infrastructure that Temporal requires.

Related posts

  • Running Durable Workflows in Postgres using DBOS

    Supabase mediumAdept

    DBOS implements durable workflows entirely in Postgres: workflow and step decorators record a workflow's ID, inputs and status in a workflow_status table and each step's output in operation_outputs, all within a separate system database. On restart, a background thread re-runs PENDING workflows with their original inputs and skips steps whose outputs are already stored, so execution resumes from the last completed step. This relies on workflows being deterministic. Because a step transition is a ~1ms Postgres write rather than a ~100ms external dispatch, DBOS claims 25x the speed of AWS Step Functions, and it offers exactly-once transactional steps and idempotency keys used as workflow IDs.

  • What's New in DBOS - October 2026

    DBOS mediumAdept

    DBOS Transact adds workflow rewind to any step, which discards checkpoints from that step onward and re-executes while preserving the workflow ID. It also adds ownership tokens, verified in the same transaction as each checkpoint write, so zombie executors stop at their next checkpoint instead of overwriting recovered workflows. A new commercial Enterprise extension now holds the Conductor client and adds automatic workflow version upgrades, coordinated with Postgres advisory locks and a grace period for running workflows. It also adds horizontal scaling over sharded Postgres: a shard_key colocates each workflow's state on one shard, and benchmarks show linear scaling past 1 million workflows per second.

  • Workflows are coming to Supabase

    Supabase mediumAdept

    Supabase is building Workflows, an open source orchestration engine written in Elixir that uses the Amazon States Language to coordinate existing functions (AWS, GCP, Azure, OpenFaaS, Postgres) in response to database events or HTTP calls. Jobs, queues and logs are stored in Postgres via Oban. Workflows can be persistent, surviving restarts, or transient and in-memory. A worked example shows a state machine that maps over Realtime INSERT events on a users table, waits 86400 seconds, then sends a templated welcome email. The interpreter is already open sourced on Hex, with dashboard integration and a Zapier-like UI planned.

  • Skipper, Airbnb’s embedded workflow engine, is now open source

    Airbnb Engineering mediumAdept

    Airbnb has open-sourced Skipper under Apache 2.0, an embedded durable workflow engine for Java and Kotlin that runs inside a service and stores workflow state in the service's existing database, with no separate orchestration cluster. Replicas run the runtime and a scheduler that polls for runnable tasks and coordinates ownership with leases. Interrupted workflows recover by replaying the workflow method from the top while reusing checkpointed action results, so workflow code must be deterministic and actions must be idempotent, since side effects remain at-least-once. Checkpoints are batched by default to cut database writes, with optional immediate checkpointing. The release includes MySQL and SQLite adapters, signals, timers, retries, Saga compensation, an in-memory test runtime and a state-machine DSL.

  • Infrastructure patterns for agentic applications

    Render mediumAdept

    Agents are long-running, stateful and non-deterministic, so running them inside an HTTP request handler breaks in production. The progression starts with web-queue-worker (enqueue a durable run record and return a run ID), adds idempotency for at-least-once retries and saga-style compensation for partial failures, then moves to workflow engines whose deterministic coordinators replay recorded history while non-deterministic model and tool calls live in steps. Fan-out/fan-in needs explicit partial-failure thresholds (e.g. Promise.allSettled) and concurrency caps or token buckets to avoid contention on shared rate limits. The patterns are then mapped onto Render Workflows (beta), which handles queueing, workers and retries but leaves idempotency, compensation, approvals and cost controls to the application.

The quest for software engineering knowledge.

Look:
Layout: