GeezerVison is showing www.dbos.dev — DBOS | Durable Workflow Orchestration
Durable Workflows Just Use PostgresAdd durable workflows to your application or AI agent to make it resilient to any failure. No infrastructure required, just use Postgres. Works with your favorites  AI agentsDurable executionDurable queuesTask observabilityCron jobsHuman in the loop Build reliable & observable AI agentsUse durable workflows to make AI agents fault-tolerant, observable, and reproducible. Integrate natively with popular agent frameworks like Pydantic AI, LlamaIndex, the OpenAI Agents SDK, and the Vercel AI SDK. from dbos_openai_agents import DBOSRunner
# Define a tool for your agent
@function_tool
@DBOS.step()
async def get_weather(city: str) -> str:
"""Get the weather for a city."""
return f"Sunny in {city}"
# Create an agentic workflow
@DBOS.workflow()
async def run_agent(user_input: str) -> str:
agent = Agent(name="weather", tools=[get_weather])
result = await DBOSRunner.run(agent, user_input)
return str(result.final_output)
Orchestrate durable workflowsWrite your business logic in normal code, with branches, loops, subtasks, and retries. DBOS makes it resilient to any failure. @DBOS.workflow()
def checkout_workflow(items: Items):
# First, create an order
order = create_order()
# Then, reserve inventory
reserve_inventory(order, items)
# Next, process payment
payment_status = process_payment(order, items)
if payment_status == 'paid':
# If payment succeeds, fulfill the order
fulfill_order(order)
else:
# If payment fails, release inventory
# and cancel the order
undo_reserve_inventory(order, items)
cancel_order(order)
Scale reliably with durable queuesUse durable queues to simplify fault-tolerant orchestration of thousands of concurrent tasks. Control how many tasks can run concurrently or how often tasks can start. # Create a named queue for indexing tasks,
# It runs no more than 10 functions concurrently
queue = Queue("indexing_queue", concurrency=10)
@DBOS.workflow()
def indexing_workflow(urls):
handles = []
# Enqueue an index task for each URL
for url in urls:
handle = queue.enqueue(index_doc, url)
handles.append(handle)
# Wait for each task to complete
# and get result
return [h.get_result() for h in handles]
Monitor workflows and queues in real timeGet real-time visibility into workflow health and performance. Inspect workflow executions, track queue metrics, and cancel, resume, or restart your workflows from the dashboard. Dynamic cron schedules made easySchedule durable workflows to run exactly once per interval. Create, update, or backfill schedules dynamically without managing external schedulers.
Record a stock's price once a minute, migrate customer data once every hour, or send emails to inactive users once a week. @DBOS.workflow()
def customer_workflow(scheduled_time: datetime, customer_id: str):
# Code to sync customer data
...
def on_customer_registration(customer_id: str):
# Create a schedule dynamically per user
# to run the customer_workflow
DBOS.create_schedule(
schedule_name=f"cus-{customer_id}-sync",
workflow_fn=customer_workflow,
schedule="0 * * * *", # Runs every hour
context=customer_id,
)
Run human-in-the-loop workflowsRun workflows that pause, wait for human input, and resume reliably, even across restarts and redeploys.
Durable sleep and notifications let workflows wait for days or weeks, or until an external signal arrives, before continuing. @DBOS.workflow()
def durable_agent(request):
# Upon reaching a step that needs approval,
# await an approval notification.
approval = DBOS.recv()
# If approved, continue execution.
# Otherwise, raise an exception to stop execution
if approval is None:
raise Exception("Agent timed out awaiting")
elif approval.response == "deny":
raise Exception("Agent denied approval")
else:
print("Agent approved:", agent_status)
@app.post("/agents/{agent_id}/respond")
def respond_to_agent(agent_id, response):
# Notify an agent it has been approved or denied
DBOS.send(agent_id, response)
Reliability Shouldn't Cost MillionsDBOS takes a radically different approach to durability that can save you millions of dollars relative to costly orchestration servers like Temporal. Run AnywhereDBOS runs wherever your code runs - even in air-gapped environments. Zero New OverheadDBOS turns your Postgres DB into an orchestration server. No need to host and operate a separate orchestration server. Keeps Your Data SaferDBOS stores workflow data in your Postgres database, totally under your control. Large Scale, Low LatencyDBOS customers run many thousands of workflows per second with lower latency than Temporal.
Easy as 1-2-3DBOS makes it simple to build durable, fault-tolerant applications and AI agents at any scale. Install DBOSJust install the open-source DBOS library to your code and connect it to a Postgres database. No new infrastructure required. Annotate your codeAnnotate workflows and steps in your code to make your applications fault-tolerant and observable by default. Manage your workflowsUse DBOS Conductor to facilitate workflow and queue troubleshooting, alerting, and remediation for all your apps. Built for reliable agents & workflowsVisualize Workflows & QueuesMonitor and manage performance in real time. IntegrationsFirst-party integrations with agent frameworks like OpenAI Agents, LlamaIndex, Pydantic AI, and the Vercel AI SDK. MCP ServerMonitor and debug your workflows directly from your preferred coding agent. Workflow ManagementUsing DBOS Conductor, automatically recover failed workflow executions; cancel, resume, or restart workflows from a dashboard; set up alerts when workflows fail; and monitor workflow progress and queue status in real time—across all your AI applications. Secure & PrivateDBOS is SOC 2 Type 2, GDPR and CCPA compliant. DBOS never stores your data and is fully private. Run AnywhereRun on-prem or in any cloud. Self-host DBOS Conductor or connect from any environment. Custom AlertsDefine custom alerts to notify your team of workflow orchestration issues. Loved by AI, Cloud & Data teamsHelping more devs, AI engineers, and SREs orchestrate fault-tolerant workflows. “In EDI, you can’t have things fall between the cracks. You need the ability to trace it end to end, and we don’t think we could do that without DBOS.” "We've been impressed by how lightweight and flexible DBOS is, the speed at which their team ships, and the level of support offered. We, at Yutori, are happy customers and excited to scale with DBOS." Abhishek Das CEO & Co-founder “DBOS makes it dead simple for our engineering team to build reliable, low-latency, AI-powered user experiences." Cameron Spiller CTO and Co-founder "I love the design of DBOS. If you're a gamer, it's like having a “save point” in your programs. If a function fails, a new function can start, picking up at the last checkpoint." Paul Copplestone CEO & Co-Founder “DBOS is really simple to manage. It gives us durable orchestration and observability without a lot of coding and without having to run additional infrastructure.” Devin Stein CEO and Co-founder “We looked at Google Workflows, Temporal, Airflow and Celery but DBOS was the one framework that solved many pieces of the puzzle while giving us implementation flexibility.” "DBOS makes it impossible to screw up." Alp Karavil CTO and Co-founder “In EDI, you can’t have things fall between the cracks. You need the ability to trace it end to end, and we don’t think we could do that without DBOS.” "We've been impressed by how lightweight and flexible DBOS is, the speed at which their team ships, and the level of support offered. We, at Yutori, are happy customers and excited to scale with DBOS." Abhishek Das CEO & Co-founder “DBOS makes it dead simple for our engineering team to build reliable, low-latency, AI-powered user experiences." Cameron Spiller CTO and Co-founder "I love the design of DBOS. If you're a gamer, it's like having a “save point” in your programs. If a function fails, a new function can start, picking up at the last checkpoint." Paul Copplestone CEO & Co-Founder “DBOS is really simple to manage. It gives us durable orchestration and observability without a lot of coding and without having to run additional infrastructure.” Devin Stein CEO and Co-founder “We looked at Google Workflows, Temporal, Airflow and Celery but DBOS was the one framework that solved many pieces of the puzzle while giving us implementation flexibility.” "DBOS makes it impossible to screw up." Alp Karavil CTO and Co-founder “In EDI, you can’t have things fall between the cracks. You need the ability to trace it end to end, and we don’t think we could do that without DBOS.” "We've been impressed by how lightweight and flexible DBOS is, the speed at which their team ships, and the level of support offered. We, at Yutori, are happy customers and excited to scale with DBOS." Abhishek Das CEO & Co-founder “DBOS makes it dead simple for our engineering team to build reliable, low-latency, AI-powered user experiences." Cameron Spiller CTO and Co-founder "I love the design of DBOS. If you're a gamer, it's like having a “save point” in your programs. If a function fails, a new function can start, picking up at the last checkpoint." Paul Copplestone CEO & Co-Founder “DBOS is really simple to manage. It gives us durable orchestration and observability without a lot of coding and without having to run additional infrastructure.” Devin Stein CEO and Co-founder “We looked at Google Workflows, Temporal, Airflow and Celery but DBOS was the one framework that solved many pieces of the puzzle while giving us implementation flexibility.” "DBOS makes it impossible to screw up." Alp Karavil CTO and Co-founder Frequently asked questionsDBOS is an open-source, Postgres-native durable execution library for building reliable AI agents, background jobs, and workflows. It provides crash recovery, durable queues, scheduling, and high-throughput execution without requiring a separate orchestration server. What is durable execution?Durable execution makes applications resilient to failures by automatically saving their progress. With DBOS, you write workflows and steps using normal code. DBOS checkpoints completed steps in Postgres, so after a crash or restart, workflows can resume without repeating previously checkpointed work. How is DBOS different from other workflow orchestrators?DBOS runs durable workflows, background jobs, queues, and scheduling directly inside your application, using your existing Postgres database. Unlike solutions that require a separate orchestration service to maintain or depend on, DBOS simplifies deployment and reduces infrastructure overhead. DBOS Conductor optionally adds observability, management, and automated distributed recovery. Can I use DBOS for AI agents?Yes. DBOS makes AI agents fault-tolerant by checkpointing LLM calls, tool executions, and workflow progress. If an agent crashes or is interrupted, it can resume without repeating completed, checkpointed steps. DBOS integrates with popular AI frameworks, including the OpenAI Agents SDK, Pydantic AI, LlamaIndex, Google ADK, and Vercel AI SDK. Can DBOS handle long-running workflows and human-in-the-loop processes?Yes. DBOS supports workflows that run for hours, days, or weeks, including processes waiting for human approvals, external events, or scheduled timers. Workflows survive application restarts and resume when ready. Does DBOS guarantee exactly-once execution?DBOS checkpoints completed workflow steps so they don't need to be re-executed during recovery. For database operations, DBOS supports exactly-once effects by committing writes and checkpoints in the same transaction. For external APIs, use idempotency keys to protect against duplicate side effects if a crash occurs before a checkpoint is saved. DBOS is built for high-throughput durable execution. In published benchmarks, DBOS achieved over 1 million workflows per second across 50 Postgres shards, demonstrating near-linear horizontal scalability. Which programming languages does DBOS support?DBOS provides durable execution libraries for Python, TypeScript, Go, Java, and Rust. Each integrates into existing applications without requiring a new application framework. Is DBOS free and open source? Can I self-host it?Yes. DBOS Transact is open source under the MIT license and free to use. You can run DBOS on your own infrastructure, in Kubernetes, in the cloud, or on-premises. Commercial plans provide DBOS Conductor, advanced enterprise features, and production support, including options to self-host Conductor. Read the latest on workflow durabilityThe latest in durable execution, AI workflows & more. What's New in DBOS - October 2026Workflow rewind, safer distributed execution, DBOS Transact Enterprise, and scaling to 1M+ workflows per second on sharded Postgres! 1M Durable Workflows per Second on PostgresHow we sharded Postgres-backed durable workflows to scale linearly Applications are Dead. Long Live WorkflowsApplications should be replaced by workflows as the unit of middleware management
|