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

Database connections managment. #1003

Open
Andrei-Dolgolev opened this issue Jan 25, 2024 · 0 comments
Open

Database connections managment. #1003

Andrei-Dolgolev opened this issue Jan 25, 2024 · 0 comments
Labels
db Database module

Comments

@Andrei-Dolgolev
Copy link
Contributor

Andrei-Dolgolev commented Jan 25, 2024

Moonstreamdb module

https://github.com/moonstream-to/api/blob/main/moonstreamdb/moonstreamdb/db.py

Currently we maintaine 2 connections to database with permissions Read/Write.

TODO:

We need create connection pool which can store RDS's connections and return them by customer_id.

Create Resolver.

        backend          |                               db module
`user_token` - > `user_id` -> `customer_id` -> RDS connection from sqlalchemy `customers_connections`
@Andrei-Dolgolev Andrei-Dolgolev added backend Backend module db Database module and removed backend Backend module labels Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
db Database module
Projects
None yet
Development

No branches or pull requests

1 participant