Termsslug: lease-and-sweeper

Lease and Sweeper

租约与清理器

Crash-recovery pattern where workers heartbeat held rows and a periodic query requeues expired leases.

Curated Intelligence

1 items · Page 1/1
InfoQ 中文T2·Tools
62 pts
Building Durable Workflows on Postgres Without an External Orchestrator

The article argues that durable execution does not require a dedicated orchestrator like Temporal or AWS Step Functions, since a relational database can fill that role. Key techniques include turning a plain Postgres table into a concurrent work queue via SELECT ... FOR UPDATE SKIP LOCKED, enforcing idempotency of step checkpoints through primary-key constraints, and recovering from crashes with a lease-and-sweeper pattern. The approach collapses reliability, observability, and security into a single database dependency.