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

Implement live read replication #321

Merged
merged 1 commit into from
Feb 19, 2022
Merged

Implement live read replication #321

merged 1 commit into from
Feb 19, 2022

Conversation

benbjohnson
Copy link
Owner

Overview

This pull request adds the ability for a Litestream instance to connect to another Litestream instance and stream changes in real-time. There is still a lot of work to make this production ready but that will happen incrementally in additional PRs in the future. Also, note that this PR is a draft and still a work-in-progress.

Fixes #8

@benbjohnson benbjohnson self-assigned this Feb 15, 2022
@benbjohnson benbjohnson force-pushed the read-replica branch 9 times, most recently from bf36023 to 4775235 Compare February 18, 2022 21:42
db.go Outdated Show resolved Hide resolved
This commit adds an http server and client for streaming snapshots
and WAL pages from an upstream Litestream primary to a read-only
replica.
@benbjohnson benbjohnson marked this pull request as ready for review February 19, 2022 16:06
@benbjohnson benbjohnson merged commit a090706 into main Feb 19, 2022
@benbjohnson benbjohnson deleted the read-replica branch February 19, 2022 16:06
@benbjohnson
Copy link
Owner Author

I'm merging this initial PR in but there's a lot more features and testing to be added in smaller future PRs before releasing as v0.4.0.

@eazuka
Copy link

eazuka commented Apr 12, 2022

This is really awesome. can't wait for v0.4.0

@benbjohnson
Copy link
Owner Author

@eazuka Thanks! I added some docs on tip docs site and there's also a litestream-read-replica-example repository if you want to try it out.

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

Successfully merging this pull request may close these issues.

Live read replicas
3 participants