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

feature: follower writes #247

Merged
merged 4 commits into from
Jan 31, 2024
Merged

feature: follower writes #247

merged 4 commits into from
Jan 31, 2024

Conversation

coufalja
Copy link
Contributor

@coufalja coufalja commented Jan 22, 2024

Description

Implements "backward" replication and in-turn follower write API. Follower clusters could write using Put, DeleteRange and Txn Ops. The call will be proxied to the leader cluster and awaited for the propagation of the revision in which it was written at the leader.

Related Issue

Fixes: #112
Fixes: #113

Motivation and Context

Change necessary to provide ability to replicate data in between followers.

Important

In this version the latency of the follower write is about 0.9 * replication.poll-interval. (read pretty high) The followup to this PR should improve that number dramatically.

How Has This Been Tested?

@github-actions github-actions bot added code Pull requests that update Go code docs Pull requests that update documentation labels Jan 22, 2024
@coufalja coufalja force-pushed the feature/follower_write_api branch 4 times, most recently from c76e20b to 3d7ec12 Compare January 22, 2024 18:23
@coveralls
Copy link

coveralls commented Jan 22, 2024

Coverage Status

coverage: 80.53% (+0.1%) from 80.434%
when pulling 4f263cf on feature/follower_write_api
into 4374a0e on master.

@coufalja coufalja merged commit 4d2321d into master Jan 31, 2024
10 checks passed
@coufalja coufalja deleted the feature/follower_write_api branch January 31, 2024 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code Pull requests that update Go code docs Pull requests that update documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reverse replication II: read-after-write guarantee Reverse replication I: eventual consistency
3 participants