Skip to content

Do we need a separate writer pool? #238

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

Open
vincentsarago opened this issue May 13, 2025 · 3 comments
Open

Do we need a separate writer pool? #238

vincentsarago opened this issue May 13, 2025 · 3 comments
Assignees

Comments

@vincentsarago
Copy link
Member

          @gadomski @hrodmn I'm not going to change the `PostgresSettings` class in this PR. 

I assume all user already set the postgres_host_writer variable anyway

My knowledge in postgres is limited but I'm having hard time to understand how can the writer and reader host be different cc @bitner

Originally posted by @vincentsarago in #236 (comment)

@bitner
Copy link
Collaborator

bitner commented May 13, 2025

They are different in the case that you may have a Read/Write Database that needs to handle any writes, but you may have Read Replicas that you use for normal read activity. Or if you want to really make sure that you are using "least privilege possible" for any operations against the db. For most cases that I've seen, they'll just be the same though.

@vincentsarago
Copy link
Member Author

@bitner but would those only have a host different? I feel that they would also have user/password being different

@bitner
Copy link
Collaborator

bitner commented May 13, 2025

Yes, all connection parameters would potentially be different

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

2 participants