Bring Your Own Database To DBOS Cloud

We’re happy to announce that DBOS Cloud now supports a much-requested feature from our users: bringing your own database!

DBOS Cloud accounts include a free Amazon RDS Postgres instance for storing application data. Many DBOS Cloud users requested the ability to use a different new instance size or access data from an existing database. This new feature allows you to link your own Postgres-compatible database instance to DBOS Cloud and run durable, auto-scaling database applications and workflows against it.

Here are some of the benefits of integrating external databases into your DBOS Cloud account:

Resilient database application performance made easy. Serverless database applications running on DBOS Cloud benefit from reliable code execution with transactional correctness guarantees--without having to write your own state machine or use a separate workflow orchestration engine. With BYODB, you can easily build new features with DBOS accessing your existing database.

Database time travel for easier debugging and auditing. If you deploy a DBOS Transact application to a linked database, you can query that application’s database as of any time in the past. All historical information retained for time travel is stored in your own database instance and you have full control over it.

Data custody and control. If you link your own database to DBOS Cloud, you have complete freedom to set your own backup, replication, and security policies.

BYODB Prerequisites

External databases linked to a DBOS Cloud account must meet a few requirements:

PostgreSQL Compatible. You can link any PostgreSQL-compatible database to DBOS Cloud. However, if you plan to use DBOS database time travel, we strongly recommend you use standard PostgreSQL or Amazon RDS PostgreSQL because time travel requires PostgreSQL logical replication.

Minimal Permissions Required. To link a database to DBOS Cloud, you only need to grant DBOS Cloud permissions to read and write your application’s data and, if using time travel, to replicate it.

How It Works

When you deploy a DBOS Transact application to a linked database, DBOS Cloud manages it serverlessly, but connects it to that linked database instead of to a DBOS Cloud-managed database. Because DBOS Transact is built for standard PostgreSQL and time travel leverages PostgreSQL logical replication, linking doesn’t require extensive database configuration or customization.

The following tutorial video demonstrates how to connect an AWS RDS Postgres database to a DBOS Cloud account, and access it from an application running on DBOS Cloud.

To learn more about how to use database linking, check out the DBOS Cloud documentation.  You can get started with DBOS Cloud today for free.

Insights

Recent articles

The latest in durable execution, AI workflows & more.

How To
Apr 1, 2026

Async Python is Secretly Deterministic

How Python async functions work, and how to produce async workflows that execute steps concurrently, but with a deterministic, durable execution order.
Peter Kraft
Qian Li
How To
Mar 24, 2026

Running Durable Workflows from Postgres UDFs

Using the Postgres workflows client from DBOS to enqueue durable workflows and send messages to them directly via a SQL function.
Peter Kraft
Qian Li
How To
Mar 16, 2026

Bridging Languages with Postgres and Workflows

In this blog post we explain how services written in different languages can interoperate by using Postgres to exchange data through workflows, messages, events, and streams. 
Peter Kraft
Qian Li