Skipper, Airbnbâs embedded workflow engine, is now open source
Airbnb has open-sourced Skipper, a Java/Kotlin workflow engine that runs inside each service and persists multi-step process state in the service's own database, instead of relying on a shared orchestration cluster. It's aimed at teams that want durable execution without adding another system to operate.
- Workflows are plain Java or Kotlin classes; waits, signals, and retries are persisted, so a redeploy mid-process doesn't lose progress.
- Recovery works by replaying workflow code, with completed action results returned from checkpoints. That requires deterministic orchestration code, and side effects are still at-least-once, so actions must be idempotent.
- The tradeoff is operational: each owning team takes on database capacity, recovery, and monitoring that a central orchestrator would otherwise handle.
Skipper is Airbnb's embedded workflow engine, now open sourced under Apache 2.0, with code, docs, and examples on GitHub. The core idea: a multi-step business process is written as an ordinary Java or Kotlin class, its progress is persisted to a database, and it recovers after crashes or transient failures. The notable design choice is where it runs. Skipper executes inside each service's own replicas, sharing the service's existing database, instead of calling out to a central orchestration cluster. Airbnb wanted each service to own its workflows and avoid adding a shared coordinator to critical paths. Replicas poll for runnable tasks and use leases to coordinate ownership, so if one replica dies another can pick up the work, though takeover timing depends on scheduler and lease settings.
The programming model splits code into workflows and actions. Workflows hold the orchestration logic: branching, ordering, and waits. Actions do the side-effecting work, like calling an API or writing to a database, and their results are checkpointed. The authors give a listing-publication example where a workflow waits up to a day for a human review signal using `waitUntil`, which hibernates the workflow without tying up a thread and survives redeploys. Recovery works by replaying the workflow method from the top, with completed actions returning their saved results. That imposes a real constraint: workflow code must be deterministic, so clock reads, randomness, and I/O belong inside actions. Checkpoints are batched by default to cut database writes, which means a crash can force several completed actions to rerun. Side effects are therefore at-least-once, and actions need idempotency keys, such as the stable request ID, to be safe. Skipper does not make downstream calls transactional.
The tradeoff is operational. Teams adopting Skipper take on database capacity, recovery, and monitoring themselves, rather than handing those to a platform team. The release includes MySQL and SQLite adapters, an admin UI, in-memory test utilities with controllable time, signals, queries, retries, Saga-style compensation, and a Kotlin state machine DSL. Airbnb's pitch is that it suits a Java or Kotlin team with a solid ops setup that would otherwise be hand-rolling retry jobs, state tables, and polling loops for every new process. The article also notes that a Java variant using CompletableFuture and Spring Boot and Dropwizard examples are included.