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

How this compares to Raft ? #9

Open
carlopires opened this issue Jul 6, 2015 · 3 comments
Open

How this compares to Raft ? #9

carlopires opened this issue Jul 6, 2015 · 3 comments

Comments

@carlopires
Copy link

I wonder how this project compares with Raft consensus. It looks like they have a lot in common, doesn't it?

@knutin
Copy link
Collaborator

knutin commented Jul 7, 2015

Yes, many of the use cases for locker could also be solved with a consensus system based on Raft, like Consul or etcd.

Architecturally, they are very different through. Locker uses two-phase commit, with a majority of masters required to participate, while Raft elects a leader and sends writes to the leader. Locker requires two round trips, while Raft requires only one. Raft also deals with changes in the cluster configuration (adding and removing nodes), while locker leaves this up to the administrator.

Locker is designed for applications running in an Erlang cluster, where you want strong consistency for coordination. If you want to coordinate among services (maybe written in different languages), Consul or etcd would be a better fit.

@liveforeverx
Copy link

Hi, @knutin how this compares to paxos??

Example: cluster of 3 machines, quorum is 2.

What happens, when after locking one of the quorum participant dies, without information, if he has saved information or not? The writes propagates only to 1 node. Than you have 2 nodes with different state. How it will be decided, which values on node 1 or 3 will be replicated?

@liveforeverx
Copy link

Red presentation and README, this answers my questions, thanks! 👍

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

3 participants