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

Read replica support for Postgres and MySQL datastores #1878

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

Commits on Apr 25, 2024

  1. Add support for read replicas to Postgres and MySQL data stores

    This is accomplished by adding a datastore proxy that selects a read replica for each SnapshotReader, in a round robin fashion, and ensures that the revision being requested is available on the replica. This extra check does add some latency to the overall operation, but it should provide for the safest approach for using read replicas
    
    Fixes authzed#1321
    Fixes authzed#1320
    josephschorr committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    50f19d8 View commit details
    Browse the repository at this point in the history
  2. Add caching on read replica CheckRevision calls to reduce the overhea…

    …d of using read replicas
    josephschorr committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    aa51f2a View commit details
    Browse the repository at this point in the history