Durable workflow SDK built on Postgres
Top 44.4% on sourcepulse
DBOS Transact is a Python library that enables developers to build lightweight, durable workflows and queues directly within their applications, leveraging PostgreSQL for state management. It targets developers building reliable systems that must handle failures gracefully, such as payment processors, data pipelines, or AI agents, by simplifying complex state management and recovery logic.
How It Works
DBOS makes Python functions durable by annotating them as @DBOS.step()
or @DBOS.workflow()
. The library checkpoints the state of these functions in PostgreSQL. Upon program restart after a failure, DBOS automatically resumes workflows from their last completed step. Durable queues are also managed via PostgreSQL, allowing tasks (steps or workflows) to be enqueued, executed reliably, and their results retrieved, all without external orchestration services.
Quick Start & Requirements
pip install dbos
Highlighted Details
DBOS.sleep()
for long-duration pauses.DBOSClient
.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
DBOS relies heavily on PostgreSQL for its durability guarantees; performance may be impacted by PostgreSQL's capabilities and load. Compared to systems like Celery/BullMQ, DBOS queues may offer lower throughput due to their durable, PostgreSQL-backed nature.
1 day ago
1 day