Article: Implementing Durable Workflows on Postgres Without an External Orchestrator
Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.
Durable workflows on Postgres without external orchestrator, directly applicable to platform engineering.
Durable workflows can be implemented on Postgres without an external orchestrator by using SELECT ... FOR UPDATE SKIP LOCKED for concurrent work queues, primary-key constraints on step checkpoints for idempotency, and a lease-and-sweeper pattern for crash recovery. This approach eliminates Temporal or AWS Step Functions as a single point of failure, reduces operational overhead, and makes observability a plain SQL query since workflow state lives in the primary database. The article details how Kestrel Workflows built this pattern to handle incident response automation on Kubernetes where workflow executions must survive process rescheduling.