Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SERF-3387] Support Multi DB connections #108

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Neurostep
Copy link
Contributor

@Neurostep Neurostep commented Jun 17, 2024

Description

In this PR we extend database.Config to support multi-DB connections.

This is a reference implementation using dbresolver gorm plugin. It covers all of the needs:

  • Support several sources to be able to connect to different DBs and choose between DBs dynamically
  • Support primary / replica configurations

This reference PR does not implement the connection pooling per primary/replica which can be done by extending this PR to cover that (actual implementation).

NOTE: this PR is not meant to be merged at this stage and has only a demo purpose.

Testing considerations

Checklist

  • Prefixed the PR title with the JIRA ticket code
  • Performed simple, atomic commits with good commit messages
  • Verified that the commit history is linear and commits are squashed as necessary
  • Thoroughly tested the changes in development and/or staging
  • Updated the README.md as necessary

Related links

@fotos fotos changed the title [SERF-3387] Support Milti DB connections [SERF-3387] Support Multi DB connections Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant