DBOS Enterprise Extensions
DBOS Enterprise Extensions add advanced durable execution features to the open-source (MIT-licensed) DBOS Transact library. They are distributed as a separate package under the DBOS Conductor and Enterprise Extensions Software License.
Features
All features in DBOS Enterprise Extensions are included in every paid DBOS plan, except sharding, which requires the DBOS Enterprise plan.
The DBOS Enterprise Extensions provide the features below.
| Feature | Description | Available in |
|---|---|---|
| Conductor access | Connect to DBOS Conductor, the control plane for your durable workflows. | Python, TypeScript, Go, Java |
| Workflow retention | Set a retention policy for how long to retain workflow data. | Python, TypeScript, Go, Java (set in the DBOS Console) |
| Auto-upgrade | Automatically move workflows from older application versions to the latest version. | Python, TypeScript, Go |
| Suspending workflows | Suspend workflows during long sleeps or waits for messages, so they use no resources until they wake. | Python, TypeScript, Go, Java |
| External storage | Keep large objects in a separate store such as Amazon S3 and checkpoint only small references to them. | Python, TypeScript |
| Workflow archiving | Export a permanent, queryable copy of your workflow history to Parquet files in object storage such as Amazon S3. | Python, TypeScript |
| Sharding | Horizontally scale DBOS to handle over 1M workflows or steps per second with a sharded Postgres system database. | Python, TypeScript, Go |
Installation
The DBOS Enterprise Extensions are distributed as a package alongside DBOS Transact:
- Python
- TypeScript
- Go
- Java
Install the dbos-enterprise package as an extra of dbos:
pip install "dbos[enterprise]"
Install the @dbos-inc/dbos-enterprise package, at the same minor version as @dbos-inc/dbos-sdk:
npm install @dbos-inc/dbos-enterprise
Add the go.dbos.dev/dbos-enterprise-go module, at the same minor version as github.com/dbos-inc/dbos-transact-golang, and import it once, anywhere in your program:
go get go.dbos.dev/dbos-enterprise-go
import _ "go.dbos.dev/dbos-enterprise-go"
Add the dev.dbos:transact-enterprise artifact, at exactly the same version as dev.dbos:transact.
DBOS loads it automatically; no code change is needed.
In Java, the DBOS Enterprise Extensions package provides the connection to Conductor and, from version 1.4, suspending workflows.
- Gradle
- Maven
dependencies {
implementation("dev.dbos:transact:1.4.0")
implementation("dev.dbos:transact-enterprise:1.4.0")
}
<dependencies>
<dependency>
<groupId>dev.dbos</groupId>
<artifactId>transact</artifactId>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>dev.dbos</groupId>
<artifactId>transact-enterprise</artifactId>
<version>1.4.0</version>
</dependency>
</dependencies>
Testing Without a DBOS Conductor Connection
Your DBOS Conductor API key also unlocks the features in DBOS Enterprise Extensions included in your plan. In production, no additional key configuration is needed.
For development and testing, you can use DBOS Enterprise Extensions without connecting to DBOS Conductor. This is useful when running local tests without external dependencies or in CI environments with restricted network access.
Simply set your DBOS Conductor API key directly in your DBOS configuration:
- Python
- TypeScript
- Go
- Java
config: DBOSConfig = {
"name": "my-app-name",
"system_database_url": os.environ.get("DBOS_SYSTEM_DATABASE_URL"),
"transact_enterprise_key": os.environ.get("DBOS_TRANSACT_ENTERPRISE_KEY"),
}
DBOS(config=config)
DBOS.setConfig({
name: "my-app-name",
systemDatabaseUrl: process.env.DBOS_SYSTEM_DATABASE_URL,
transactEnterpriseKey: process.env.DBOS_TRANSACT_ENTERPRISE_KEY,
});
await DBOS.launch();
dbosContext, err := dbos.NewContext(context.Background(), dbos.Config{
AppName: "my-app-name",
DatabaseURL: os.Getenv("DBOS_SYSTEM_DATABASE_URL"),
TransactEnterpriseKey: os.Getenv("DBOS_TRANSACT_ENTERPRISE_KEY"),
})
DBOSConfig config = DBOSConfig.defaults("my-app-name")
.withDatabaseUrl(System.getenv("DBOS_SYSTEM_JDBC_URL"))
.withTransactEnterpriseKey(System.getenv("DBOS_TRANSACT_ENTERPRISE_KEY"));
With the Spring Boot starter, set the dbos.transact-enterprise-key property.
DBOS Java checks entitlements from version 1.4 on.
If you self-host DBOS Conductor, also configure your Conductor URL so that feature entitlements are verified by your own DBOS Conductor instance.
You can use DBOS Enterprise Extensions without DBOS Conductor for development and testing. For production use, the Software License requires applications to connect to DBOS Conductor.