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

Add support for different connection URL for QAcc containers #126

Open
aminlatifi opened this issue Nov 1, 2024 · 1 comment
Open

Add support for different connection URL for QAcc containers #126

aminlatifi opened this issue Nov 1, 2024 · 1 comment
Assignees

Comments

@aminlatifi
Copy link

QAcc has two kind of containers, one for running background jobs and one for serving as graphql server to users.
We need to support different DB connection URL for them

@mhmdksh
Copy link

mhmdksh commented Nov 5, 2024

@aminlatifi In order for this to happen and as we are working on the same application, you will have to define a flag for the connection URI to be different depending on the mode that the application is running in. For example:

  • If GRAPHQL_MODE=true --> DB URI is graph-ql-db-uri=URI_VALUE
  • If JOB_MODE=true --> DB URI is job-db-uri=URI_VALUE
    WDYT??

Also what do you mean by a different DB connection?? Do you mean a read only connection? or do you mean a connection with another user?? Or do you mean a connection to a totally different DB??

It's important to clear these points, since the implementation would be different depending on the answer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants