Skip to content

Find a way to have multiple instances of DBOS #1044

@yacinehmito

Description

@yacinehmito

Our application is designed to be able to connect to multiple databases simultaneously. It allows for single-tenancy databases with multi-tenancy programs. To achieve this, connections to the databases may be initiated when a request is received, then saved in a global pool for reuse.

The design of DBOS SDK prevents such a use case, as the connection is managed by a singleton.

I don't yet have a suggestion for a better API (I need to think about it more). The ability to customize connection management, instead of changing the current API, would cover that advanced use case.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions