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 read replicas when using MySQL or PostgreSQL #162

Closed
akajla09 opened this issue Jun 19, 2023 · 0 comments
Closed

Add support for read replicas when using MySQL or PostgreSQL #162

akajla09 opened this issue Jun 19, 2023 · 0 comments
Labels
datastore Requires changes in the datastore layer enhancement New feature or request

Comments

@akajla09
Copy link
Member

akajla09 commented Jun 19, 2023

Is your feature request related to a problem? Please describe.
The Warrant service currently supports MySQL, PostgreSQL and SQLite as databases. Even though the service itself is horizontally scalable (i.e. can add more service nodes), it is limited by the underlying dbs. A common HA deployment pattern for these single-master dbs is to deploy multiple read replicas (or readers) to take load off of the main writer node, especially in read-heavy deployments as is commonly the case for Warrant.

As such, the Warrant service should be able to make use of a multi-node db cluster (multiple readers, single writer) to enable even higher scale for check requests.

Describe the solution you'd like

Additional context

  • Note that this solution is only for single-master dbs. Multi-master dbs (like Google Spanner) provide their own consistency guarantees.
@akajla09 akajla09 added datastore Requires changes in the datastore layer enhancement New feature or request labels Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datastore Requires changes in the datastore layer enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant